summaryrefslogtreecommitdiffstats
path: root/twin
Commit message (Collapse)AuthorAgeFilesLines
* Rename KWinModule to TWinModuleMichele Calgaro24 hours2-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: remove unused onlyDecoTranslucentAlexander Golubev2026-02-191-1/+0
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: remove "Apply translucency only to decoration" optionAlexander Golubev2026-02-196-34/+1
| | | | | | | | 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: streamline compton-tde starting codeAlexander Golubev2026-02-182-83/+89
| | | | | | | | This fixes the issue raised in comments to PR #704[1]. [1]: https://mirror.git.trinitydesktop.org/gitea/gitea/TDE/tdebase/pulls/704#issuecomment-81007 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: refactor Client::setOpacity() and associated stuffAlexander Golubev2026-02-138-28/+30
| | | | | | | | * 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-133-8/+24
| | | | | | | | | | | | | 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-135-145/+90
| | | | | | | | | | * 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-133-1/+11
| | | | | | | | | | | 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>
* twin: small refactoring; move global variables to the classAlexander Golubev2026-01-072-7/+9
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin/compton: remove no longer used old pid-file functionsAlexander Golubev2026-01-072-58/+0
| | | | | Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/673 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin/compton: simplify signal handlersAlexander Golubev2026-01-072-45/+31
| | | | | | | | | | | | Make signal handlers just set a flag and move all actual logic into the main loop. A general reminder: it's a UB to have stuff like malloc() in signal handlers. This partially reverts some changes made by fbd3a27d6e. Now to reset compton config the whole session will be recreated from scratch. Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/673 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin/compton: use SIGUSR1 to reload settingsAlexander Golubev2026-01-072-28/+4
| | | | | | | | | | Before that to reload settings compton-tde was using SIGUSR2; and SIGUSR1 wasn't actully used, but was designated for something wierd. This commit removes old SIGUSR1 handler and uses SIGUSR1 to reload the settings instead of SIGUSR2. Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/673 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin/compton: remove the file passed via --write-pid-path on exitAlexander Golubev2026-01-071-2/+39
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: incorporate DISPLAY into compton pidfile nameAlexander Golubev2026-01-073-82/+34
| | | | | | | | | | | | This fixes compton launch on systems with several X11 Screens. And also in case of multiple sessions for the same user. Also: - move the file to tde's proper tmp dir. - deduplicate some code Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tdebase/issues/673 Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin/compton-tde: remove some dead codeAlexander Golubev2026-01-072-23/+2
| | | | | | | | `WORK_AROUND_FGLRX` is not defined anywhere in the build system. And the code under the #ifdefs was broken for decades as `restartOnSigterm` is not declared, defined or used anywhere. Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: minor whitespaces fixupAlexander Golubev2026-01-072-19/+19
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Use True/False values for X11 API callsAlexander Golubev2026-01-078-12/+12
| | | | | | | | | 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-028-12/+12
| | | | | | | | | | 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>
* twin: fix tiling of maximized windows. This resolves issue #675Michele Calgaro2025-11-221-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Remove specific reference to the number of KDE version. This resolves issue #674Michele Calgaro2025-11-161-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use tdeinstance.hMichele Calgaro2025-08-182-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use TDEDesktopFileMichele Calgaro2025-07-131-3/+3
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use TDESimpleConfigMichele Calgaro2025-07-122-4/+4
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace TRUE/FALSE with boolean values true/falseMichele Calgaro2025-05-2724-190/+190
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* TWin: Fix tiling from window menu and geom_restore. Resolves issue #624rbell2025-05-221-2/+5
| | | | Signed-off-by: rbell <riley.bell@vfemail.net>
* twin: allow wider tiling bands and increase activation delay timer granularityMichele Calgaro2025-05-141-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: Use screen geometry when active borders are in tiling moderbell2025-05-133-24/+36
| | | | Signed-off-by: rbell <riley.bell@vfemail.net>
* Use tdestandarddirs.hMichele Calgaro2025-02-255-5/+5
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use tdeglobalaccel.hMichele Calgaro2025-02-223-3/+3
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use tdeAppMichele Calgaro2025-02-0314-70/+70
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use tdeprocess.hMichele Calgaro2024-12-026-6/+6
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Rename KUniqueApplication to TDEUniqueApplicationMichele Calgaro2024-11-201-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin compton: use libpcre2 instead of libpcreMichele Calgaro2024-08-187-65/+51
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* TWin, Kicker: Add icons for tiling menusMavridis Philippe2024-08-0211-26/+17
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Add support for window tiling to the taskbar and window's popup menus. This ↵Michele Calgaro2024-08-022-1/+41
| | | | | | relates to TDE/tdebase#349. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORTMichele Calgaro2024-05-0522-28/+28
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: add tileWindowToBorder() and rename previously introduced ↵Michele Calgaro2024-03-295-19/+30
| | | | | | tileHorizontally(), tileVertically(), tileGrid() DCOP calls Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* TWin: add tileHorizontally(), tileVertically(), tileGrid() DCOP callsMavridis Philippe2024-03-295-0/+58
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Fix twin crash when starting with 'Switch desktop' option set. ThisMichele Calgaro2024-03-112-56/+76
| | | | | | resolves issue #455. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace Q_WS_* defines with TQ_WS_* equivalentsMichele Calgaro2024-02-141-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace Q_SIGNALS and Q_SLOTSMichele Calgaro2024-02-032-4/+4
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT definesMichele Calgaro2024-01-1632-374/+374
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace various '#define' strings - part 6Michele Calgaro2023-12-262-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* TWin: Add DCOP method showWindowMenu(wid) for default menu positionMavridis Philippe2023-12-213-2/+13
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* TWin showWindowMenu: add support for negative coordinatesMavridis Philippe2023-12-211-10/+13
| | | | | | | | Negative coordinates change the popup menu origins: * Negative X: origin is right edge instead of left; * Negative Y: origin is bottom edge instead of top. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* twin: fix showWindowMenuAt(...) DCOP callMavridis Philippe2023-12-211-3/+5
| | | | | | | | Before it only called slotWindowOperations(), which showed the operations menu of the current window at a preset position, ignoring all arguments passed to showWindowMenuAt. This commit implpements the correct behaviour of the function which takes all arguments into account. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* twin: use separate bit to inhibit configure request messages. This resolves ↵Michele Calgaro2023-12-134-3/+5
| | | | | | issue #434. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replaced various '#define' with actual strings - part 5Michele Calgaro2023-12-053-10/+10
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>