You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Ubuntu MATE with Compiz enabled, possibly depending on your Compiz settings, Desktops/Workspaces are reduced to 1 gigantic Desktop/Worspace/ViewPort and implements Virtual Desktops by moving the ViewPort. To effectively track "Workspace" switches you actually need to watch for the viewports-changed signal.
The EWMH library offers just a wee bit of extended information over Wnck, specifically:
getDesktopViewPort() which gives you the current X, Y of the ViewPort
getWorkArea() which gives you the actual width/height of the visible desktop area
getDesktopGeometry() which gives you the entire size of the gigantic desktop
Using these values, we can determine how many virtual workspaces there are - and which one we're on.
Similar to #1690
When running Ubuntu MATE with Compiz enabled, possibly depending on your Compiz settings, Desktops/Workspaces are reduced to 1 gigantic Desktop/Worspace/ViewPort and implements Virtual Desktops by moving the ViewPort. To effectively track "Workspace" switches you actually need to watch for the
viewports-changed
signal.The
EWMH
library offers just a wee bit of extended information overWnck
, specifically:getDesktopViewPort()
which gives you the current X, Y of the ViewPortgetWorkArea()
which gives you the actual width/height of the visible desktop areagetDesktopGeometry()
which gives you the entire size of the gigantic desktopUsing these values, we can determine how many virtual workspaces there are - and which one we're on.
For example:
The text was updated successfully, but these errors were encountered: