summaryrefslogtreecommitdiffstats
path: root/twin/workspace.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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> (cherry picked from commit 7a5b6c55a2f750986ede116b8f09bda2588de3a9)
* 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> (cherry picked from commit da7db78bfe13860fe8d63654ed4c3427f14f373c)
* Fix compatibility of recent patch with r14.1.x branch.Slávek Banko2026-01-081-1/+1
| | | | Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
* twin: small refactoring; move global variables to the classAlexander Golubev2026-01-081-7/+5
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit e6c30469e4c7a09517a493ede0e4fcb3a00372f6)
* twin/compton: use SIGUSR1 to reload settingsAlexander Golubev2026-01-081-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> (cherry picked from commit 3c7a0379431e4a6d0f3a4997c0ecc4c2f3d8895c)
* twin: incorporate DISPLAY into compton pidfile nameAlexander Golubev2026-01-081-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> (cherry picked from commit 477aced6a6f6cd1c35e49de5b187b99a583ba0fd)
* twin: minor whitespaces fixupAlexander Golubev2026-01-081-12/+12
| | | | | Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 37f016c533e08dda6fa6c7a2df76072826df5042)
* Use True/False values for X11 API callsAlexander Golubev2026-01-081-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> (cherry picked from commit c7d8ac7d97ca9e593be1851ac1cfe4953e545d40)
* 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> (cherry picked from commit e8fcdbfe90d505ea5c8092915abaa07d08422886)
* Replace TRUE/FALSE with boolean values true/falseMichele Calgaro2025-05-271-26/+26
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 0a439ac80bdf6ffb9cac104ad3098a321ee0403c)
* twin: Use screen geometry when active borders are in tiling moderbell2025-05-131-9/+17
| | | | | Signed-off-by: rbell <riley.bell@vfemail.net> (cherry picked from commit 37605209af6150bda9a68f311b3535edf39ff122)
* 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> (cherry picked from commit 7e7c3b4d5f4d2793eff2edb278da4bee29097e04)
* Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT definesMichele Calgaro2024-01-161-32/+32
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a4241b7911d2e0b36edfb02f616b8b282050c0ec)
* Replaced time related '#define' with actual stringsMichele Calgaro2023-11-231-12/+12
| | | | | Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 81ad1f9e3c9d494edc38a7aad96fdcab9d44a795)
* twin: update Qt:: -> TQt::Mavridis Philippe2023-08-121-8/+8
| | | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 83e74d1e550db6a814ec252968b601f6a9b14f9b)
* twin: Add opaque tiling optionMavridis Philippe2023-08-121-1/+1
| | | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit bc6893644c1ae2dc82c9a30b5c1d6cb3d0f193e1)
* 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> (cherry picked from commit 22625693f124aae09863f4d33e30b625a96c3557)
* twin: Minor code cleanup and refactoringMavridis Philippe2023-07-101-110/+95
| | | | | | | Refactoring concerns active border code. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 0339423ced3db53f9155c6c174d9508517358f9c)
* 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> (cherry picked from commit becae3055bfd5da737f63d5558695030db91a3a9)
* TWin: Add active corner support to quick tilingMavridis Philippe2023-07-041-64/+57
| | | | | Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 5b1934dd5dc3245fcfd4a771fd45ed30dcaace54)
* 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> (cherry picked from commit 31335a04ed9bc01fd3ede33afde40d6f3359f2e9)
* 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
|
* Update remnant references: kde-*.desktop -> tde-*.desktop.Darrell Anderson2012-07-051-3/+3
|
* Add source code module name [twin-workspace] to stdout/stderr messages to ↵Darrell Anderson2012-03-211-2/+2
| | | | improve readability.
* Rename additional global functions and variables for tqt3Timothy Pearson2012-03-021-82/+82
|
* Rename additional global TQt functionsTimothy Pearson2012-03-011-1/+1
|
* Update twin with initial framework for application suspend/resumeTimothy Pearson2012-02-201-0/+54
| | | | This needs some additional work before it can be enabled