summaryrefslogtreecommitdiffstats
path: root/twin/workspace.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename KWinModule to TWinModuleMichele Calgaro2026-03-051-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: streamline compton-tde starting codeAlexander Golubev2026-02-181-82/+87
| | | | | | | | 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-131-2/+2
| | | | | | | | * 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: refactor Client::updateOpacity() and associated stuffAlexander Golubev2026-02-131-1/+12
| | | | | | | | | | * 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: set opacity to be fully opaque by defaultAlexander Golubev2026-02-131-0/+4
| | | | | | | | | | | 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-071-7/+5
| | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
* twin/compton: use SIGUSR1 to reload settingsAlexander Golubev2026-01-071-3/+3
| | | | | | | | | | 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: incorporate DISPLAY into compton pidfile nameAlexander Golubev2026-01-071-81/+32
| | | | | | | | | | | | 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: minor whitespaces fixupAlexander Golubev2026-01-071-12/+12
| | | | 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-26/+26
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: Use screen geometry when active borders are in tiling moderbell2025-05-131-9/+17
| | | | Signed-off-by: rbell <riley.bell@vfemail.net>
* Use tdeglobalaccel.hMichele Calgaro2025-02-221-1/+1
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use tdeAppMichele Calgaro2025-02-031-15/+15
| | | | 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>
* Fix twin crash when starting with 'Switch desktop' option set. ThisMichele Calgaro2024-03-111-43/+66
| | | | | | resolves issue #455. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT definesMichele Calgaro2024-01-161-32/+32
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Replaced time related '#define' with actual stringsMichele Calgaro2023-11-231-12/+12
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: update Qt:: -> TQt::Mavridis Philippe2023-08-121-8/+8
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* twin: Add opaque tiling optionMavridis Philippe2023-08-121-1/+1
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the ↵Michele Calgaro2023-07-131-1/+1
| | | | | | merging of tqtinterface with tqt3. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* twin: Minor code cleanup and refactoringMavridis Philippe2023-07-101-110/+95
| | | | | | Refactoring concerns active border code. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* twin: 25% zones for active cornersMavridis Philippe2023-07-101-19/+48
| | | | | | | | | Added special checks that make corner activation easier: we assume a 25% zone on the edge of each border where instead of half size tiling we perform quarter size tiling. The rest 50% is left for normal half size tiling. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* TWin: Add active corner support to quick tilingMavridis Philippe2023-07-041-64/+57
| | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
* TWin: Active borders and snap tilingMavridis Philippe2023-05-271-237/+340
| | | | | | | | | | | | | | | | | | | | | | 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>
* Remove QT_CLEAN_NAMESPACE/TQT_CLEAN_NAMESPACE unnecessary define.Michele Calgaro2018-09-251-2/+0
| | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
* Fix compositor startup failureTimothy Pearson2014-11-301-19/+25
| | | | Clean up build warnings
* Fix twin attempting to load a new compton-tde instance when one is already ↵Timothy Pearson2014-11-251-35/+47
| | | | active
* Fix twin deleting comptontdepidfile when compton-tde already running on startupTimothy Pearson2014-11-231-43/+56
| | | | Fix long-standing bug in calling desktop lock methods over DCOP from within kdesktop process
* Fix improperly sized string buffers in compton pid codeTimothy Pearson2014-11-201-2/+2
|
* Write compton-tde pid file to tmpTimothy Pearson2014-11-191-28/+24
| | | | This resolves Bug 887
* Add basic support for a modified compton compositor instead of the old buggy ↵Timothy Pearson2014-03-311-8/+10
| | | | | | kompmgr Update additional Xorg atom names
* Fix failure to start kompmgr from control panelTimothy Pearson2013-06-111-0/+6
|
* Fix kompmgr not respecting user settingsTimothy Pearson2013-06-111-1/+1
|
* Fix TDM hang in certain circumstances when themed greeter is deletedTimothy Pearson2013-05-071-1/+7
| | | | | This resolves Bug 1453 Resolve themed greeter drawing inconsistencies between composited and non-composited mode
* Fix when kompmgr printf message is displayed.Darrell Anderson2013-03-021-4/+2
|
* Rename additional header files to avoid conflicts with KDE4Timothy Pearson2013-02-151-4/+4
|
* Rename common header files for consistency with class renamingTimothy Pearson2013-02-141-1/+1
|
* Rename a number of classes to enhance compatibility with KDE4Timothy Pearson2013-02-011-4/+4
|
* Rename KStartup for enhanced compatibility with KDE4Timothy Pearson2013-01-311-4/+4
|
* Rename a number of libraries and executables to avoid conflicts with KDE4Timothy Pearson2013-01-271-2/+2
|
* Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4Timothy Pearson2013-01-251-6/+6
|
* Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4Timothy Pearson2013-01-241-26/+26
|
* Rename KApplication to TDEApplication to avoid conflicts with KDE4Timothy Pearson2013-01-201-2/+2
|
* Add preliminary taskbar task state supportTimothy Pearson2012-12-231-0/+31
|
* Make shadow settings slightly less confusingTimothy Pearson2012-12-101-1/+3
|
* Fix kompmgr shadow supportTimothy Pearson2012-12-101-1/+9
| | | | | | Add kompmgr settings reload method to twin DCOP Fix up kompmgr kcontrol module Make default TDM login screen appearance more like the rest of the TDE login system
* Fix DCOP interface to window suspend/resume functionsTimothy Pearson2012-12-031-6/+15
| | | | This resolves Bug 1354
* Update calls to deprecated XKeycodeToKeysym functionTimothy Pearson2012-08-071-1/+2
|