summaryrefslogtreecommitdiffstats
path: root/twin
Commit message (Collapse)AuthorAgeFilesLines
* twin: small refactoring; move global variables to the classHEADmasterAlexander Golubev38 hours2-7/+9
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin/compton: remove no longer used old pid-file functionsAlexander Golubev38 hours2-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 Golubev38 hours2-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 Golubev38 hours2-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 Golubev38 hours1-2/+39
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin: incorporate DISPLAY into compton pidfile nameAlexander Golubev38 hours3-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 Golubev38 hours2-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 Golubev38 hours2-19/+19
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* Use True/False values for X11 API callsAlexander Golubev38 hours8-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 Golubev7 days8-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>
* Replace 'Event' #define stringsMichele Calgaro2023-12-026-23/+23
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: makes sure to notify an application on resizing events so that the ↵Michele Calgaro2023-12-011-0/+5
| | | | | | window contents can get updated. This is particularly important for Virtual Terminal based application. This resolves issue TDE/tde#57 and issue #384. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix unwanted window resizing. This resolves issue TDE/tde#57.Michele Calgaro2023-11-264-1/+14
| | | | | | 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 4Michele Calgaro2023-11-261-2/+2
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replaced various '#define' with actual strings - part 3Michele Calgaro2023-11-244-34/+34
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replaced time related '#define' with actual stringsMichele Calgaro2023-11-239-40/+40
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace various tq* strings with TQt::* equivalentsMichele Calgaro2023-11-217-13/+13
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replace Qt with TQtMichele Calgaro2023-11-135-6/+6
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* TWin: Fix loading of window decoration configuration librariesMavridis Philippe2023-10-041-4/+1
| | | | | | Accidentally broken by commit 84ab47055d. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, ↵Michele Calgaro2023-09-258-17/+17
| | | | | | QIODevice with TQ* version Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>