diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-25 21:40:24 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-25 21:40:24 +0000 |
| commit | 9d0dfca7b09cd8189d2f51b68a1346b2b31b5d12 (patch) | |
| tree | df8cd46a06bed0caa853e9ce094952003b6615e0 /openbox | |
| parent | 31f63fb6f736f55089ea102c16e0b77a3f0a0156 (diff) | |
i broke desktop switching
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/screen.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 08b2d740..b7cb41c8 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -508,10 +508,11 @@ void screen_set_desktop(guint num, gboolean dofocus) g_assert(num < screen_num_desktops); - if (old == num) return; - old = screen_desktop; screen_desktop = num; + + if (old == num) return; + PROP_SET32(RootWindow(ob_display, ob_screen), net_current_desktop, cardinal, num); |
