summaryrefslogtreecommitdiffstats
path: root/twin/client.cpp
Commit message (Collapse)AuthorAgeFilesLines
* twin: remove "Apply translucency only to decoration" optionAlexander Golubev2026-02-191-20/+0
| | | | | | | | The option has been broken for more than a decade (since replacement of kompmgr with compton-tde) and it is nontrivial to fix it. Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/706 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: refactor Client::setOpacity() and associated stuffAlexander Golubev2026-02-131-11/+9
| | | | | | | | * change setOpacity() prototype to receive only opacity. * rename { setPopupClientOpacity => setPopupClientTransparancy() } to better reflect what the function does Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: better rules when to set custom_opacity flagAlexander Golubev2026-02-131-4/+17
| | | | | | | | | | | | | This patch implements next peaces of logic: - If opacity is not completely opaque by default, changing it to opaque won't result it resetting the flag anymore. - Also in such a case the X11 property will be set for completely opaque windows as well. That way we can restore it in case of WM restart. - On WM initialization we check if the X11 opacity property has value we would expectto be left behind by previous WM instance and if it does we won't set the custom_opacity flag. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: treat keepAbove() windows exactly as activeAlexander Golubev2026-02-131-4/+2
| | | | | | | | | Before this the keepAbove() windows were always completely when inactive regardless whether active windows have some degree of translucency or not. But as prompt in the config says they should be just treated as active. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: refactor Client::updateOpacity() and associated stuffAlexander Golubev2026-02-131-137/+66
| | | | | | | | | | * deduplicate big chunk of code in updateOpacity() * move logic to get desired opacity according to rules into a dedicated function (defaultOpacity()). * Replace floating point arithmetics with pure integer one in function associated to converting to/from percents. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: fix translucency for inactive windowsAlexander Golubev2026-02-131-5/+0
| | | | | | | | | | | | | Because of this old workaround translucency for inactive windows were not applied correctly: they were almost always using translucency settings for active windows. I don't see any regressions caused by removing it and I can't reproduce the original bug[1]. [1]: http://bugs.trinitydesktop.org/show_bug.cgi?id=2220 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: set opacity to be fully opaque by defaultAlexander Golubev2026-02-131-1/+1
| | | | | | | | | | | Also set window's opacity after it's getting managed by twin. This resolves issue with windows that don't require input get transparent after move/resize. Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/698 Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/699 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Use True/False values for X11 API callsAlexander Golubev2026-01-071-2/+2
| | | | | | | | | During discussion it was decided that it would be better to use more traditional constants for True/False in X11 calls after all. This effectively fixes-up the changes made by e8fcdbfe9. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Replace TRUE/FALSE with boolean values true/false [2]Alexander Golubev2026-01-021-2/+2
| | | | | | | | | | X API calls for some reason were missed in previous commits. Note: Traditionally X Api uses "True" and "False" definitions, but for consistency with the rest of code base it would be better to use modern counterparts. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Replace TRUE/FALSE with boolean values true/falseMichele Calgaro2025-05-271-37/+37
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use tdestandarddirs.hMichele Calgaro2025-02-251-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use tdeprocess.hMichele Calgaro2024-12-021-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT definesMichele Calgaro2024-01-161-9/+9
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: use separate bit to inhibit configure request messages. This resolves ↵Michele Calgaro2023-12-131-1/+2
| | | | | | issue #434. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix unwanted window resizing. This resolves issue TDE/tde#57.Michele Calgaro2023-11-261-0/+9
| | | | | | Some applications (like xfce4-terminal) try to manage their sizes by requesting the window manager a different size. The WM responds by resizing the window and the application tries once again to adjust its own size. This can lead to a repeated loop of request-resize which results in the application window to either shrink to the minimum allowed size or expand to the display size. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replaced various '#define' with actual strings - part 3Michele Calgaro2023-11-241-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replaced time related '#define' with actual stringsMichele Calgaro2023-11-231-8/+8
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace various tq* strings with TQt::* equivalentsMichele Calgaro2023-11-211-6/+6
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, ↵Michele Calgaro2023-09-251-3/+3
| | | | | | QIODevice with TQ* version Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: Minor code cleanup and refactoringMavridis Philippe2023-07-101-38/+38
| | | | | | Refactoring concerns active border code. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* TWin: Active borders and snap tilingMavridis Philippe2023-05-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | This commit is a squash of the commits of TDE/tdebase#331. In short, this backports some improvements to existing electric border functionality from KDE, adds the snap tiling (or aerosnap) feature and brings rudimentary support for active corners, which will be fully implemented in a later PR. The options dialog and the documentation has been updated to reflect these changes. Additionally, a new relevant option is introduced: an option for restoring the original size of maximized/tiled windows when the user starts dragging them. The option is set to be off by default, preserving the traditional behaviour of KDE 3.x/TDE. Last but not least, the term "electric" in relation to borders and corners is replaced by "active" for clarity to the users. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* SunOS specific patchesDenis Kozadaev2023-05-221-0/+29
| | | | Signed-off-by: Denis Kozadaev <denis@dilos.org>
* Removed explicit usage of the 'register' keyword.Michele Calgaro2020-01-301-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix FTBFS with GCC7François Andriot2017-07-231-2/+2
| | | | Signed-off-by: François Andriot <francois.andriot@free.fr>
* Fix window control issues introduced in GIT hash 17b142ddTimothy Pearson2014-11-301-2/+5
| | | | This relates to Bug 2220
* Send setActive signal when taking focus in Client::takeFocusTimothy Pearson2014-11-291-4/+8
| | | | | This relates to Bug 2189 Clean up minor formatting issues
* Call setActive if new focus window is found and set when rotating focus to ↵Timothy Pearson2014-11-211-4/+2
| | | | | | next available window This resolves Bug 2189
* Fix remnant QMIN/QMAX to TQMIN/TQMAX.Darrell Anderson2013-11-281-2/+2
|
* Rename additional header files to avoid conflicts with KDE4Timothy Pearson2013-02-151-1/+1
|
* Rename KStandard for enhanced compatibility with KDE4Timothy Pearson2013-01-311-2/+2
|
* Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4Timothy Pearson2013-01-241-8/+8
|
* Unset/set NETWM shading state around minimizingSlávek Banko2012-12-221-1/+7
| | | | Based on KDE GIT commit 8a02a383
* Use TQFile object to read PID instead of standard C++ file functionsTimothy Pearson2012-07-251-38/+27
|
* Rename additional global functions and variables for tqt3Timothy Pearson2012-03-021-79/+79
|
* Rename additional global TQt functionsTimothy Pearson2012-03-011-11/+11
|
* Fix incomplete commits 98ead41b and 678bea5bTimothy Pearson2012-02-231-2/+31
|
* Add suspend/resume support for twin managed applicationsTimothy Pearson2012-02-201-4/+95
|
* Update twin with initial framework for application suspend/resumeTimothy Pearson2012-02-201-0/+118
| | | | This needs some additional work before it can be enabled
* Remove additional unneeded tq method conversionsTimothy Pearson2011-12-191-46/+46
|
* Revert "Rename a number of old tq methods that are no longer tq specific"Timothy Pearson2011-12-161-46/+46
| | | | This reverts commit 73c08b592db45af554b9f21029bc549d70f683ab.
* Rename a number of old tq methods that are no longer tq specificTimothy Pearson2011-12-151-46/+46
|
* Rename kwin to twin (Part 2 of 2)Timothy Pearson2011-11-071-0/+2845