summaryrefslogtreecommitdiffstats
path: root/twin/workspace.cpp
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-12-05 22:50:22 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-12-05 22:52:09 +0300
commit93ea866ef6b2c6bc08491676929e1ef58d3d055b (patch)
tree30d2fe3dd9616e9905c20f91cc517f504e7b9e56 /twin/workspace.cpp
parent647d52df39143529391436d54a0dfd6bf0de7368 (diff)
downloadtdebase-fix/compton-pidfile.tar.gz
tdebase-fix/compton-pidfile.zip
twin: small refactoring; move global variables to the classfix/compton-pidfile
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'twin/workspace.cpp')
-rw-r--r--twin/workspace.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/twin/workspace.cpp b/twin/workspace.cpp
index c720730aa..830b52f1d 100644
--- a/twin/workspace.cpp
+++ b/twin/workspace.cpp
@@ -54,15 +54,10 @@ namespace KWinInternal
{
extern int screen_number;
+extern bool disable_twin_composition_manager;
Workspace *Workspace::_self = 0;
-TDEProcess* kompmgr = 0;
-TDESelectionOwner* kompmgr_selection;
-
-bool allowKompmgrRestart = true;
-extern bool disable_twin_composition_manager;
-
bool supportsCompMgr()
{
if (disable_twin_composition_manager) {
@@ -163,7 +158,10 @@ Workspace::Workspace( bool restore )
topmenu_space( NULL ),
set_active_client_recursion( 0 ),
block_stacking_updates( 0 ),
- forced_global_mouse_grab( false )
+ forced_global_mouse_grab( false ),
+ kompmgr( NULL ),
+ kompmgr_selection( NULL ),
+ allowKompmgrRestart( true )
{
_self = this;
mgr = new PluginMgr;