summaryrefslogtreecommitdiffstats
path: root/twin/client.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2026-02-14 00:32:08 +0300
committerAlexander Golubev <fatzer2@gmail.com>2026-02-14 00:32:08 +0300
commite9b8cb7ae478923ae7cec5ef9c27ea209204b802 (patch)
treea0e9e558a65bc6bb63a4f4755cd224fffcd897c4 /twin/client.cpp
parent4bedd264f45b13407d0444a02c3b68e64d979fb9 (diff)
downloadtdebase-Fat-Zer/twin/remove-onlyDecoTranslucent.tar.gz
tdebase-Fat-Zer/twin/remove-onlyDecoTranslucent.zip
twin: remove "Apply translucency only to decoration" optionFat-Zer/twin/remove-onlyDecoTranslucent
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>
Diffstat (limited to 'twin/client.cpp')
-rw-r--r--twin/client.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/twin/client.cpp b/twin/client.cpp
index 22936084f..50248bc2c 100644
--- a/twin/client.cpp
+++ b/twin/client.cpp
@@ -328,9 +328,6 @@ void Client::updateDecoration( bool check_workspace_pos, bool force )
XReparentWindow( tqt_xdisplay(), decoration->widget()->winId(), frameId(), 0, 0 );
decoration->widget()->lower();
decoration->borders( border_left, border_right, border_top, border_bottom );
- options->onlyDecoTranslucent ?
- setDecoHashProperty(border_top, border_right, border_bottom, border_left):
- unsetDecoHashProperty();
int save_workarea_diff_x = workarea_diff_x;
int save_workarea_diff_y = workarea_diff_y;
move( calculateGravitation( false ));
@@ -387,9 +384,6 @@ void Client::checkBorderSizes()
border_right != new_right ||
border_top != new_top ||
border_bottom != new_bottom)
- options->onlyDecoTranslucent ?
- setDecoHashProperty(new_top, new_right, new_bottom, new_left):
- unsetDecoHashProperty();
move( calculateGravitation( false ));
plainResize( sizeForClientSize( clientSize()), ForceGeometrySet );
checkWorkspacePosition();
@@ -2989,20 +2983,6 @@ bool Client::touches(const Client* c)
return false;
}
-void Client::setDecoHashProperty(uint topHeight, uint rightWidth, uint bottomHeight, uint leftWidth)
-{
- long data = (topHeight < 255 ? topHeight : 255) << 24 |
- (rightWidth < 255 ? rightWidth : 255) << 16 |
- (bottomHeight < 255 ? bottomHeight : 255) << 8 |
- (leftWidth < 255 ? leftWidth : 255);
- XChangeProperty(tqt_xdisplay(), frameId(), atoms->net_wm_window_decohash, XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &data, 1L);
-}
-
-void Client::unsetDecoHashProperty()
-{
- XDeleteProperty( tqt_xdisplay(), frameId(), atoms->net_wm_window_decohash);
-}
-
#ifndef NDEBUG
kdbgstream& operator<<( kdbgstream& stream, const Client* cl )
{