X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=b7cb41c85d8722a040f396598d19fc59bf69f9d4;hb=9d0dfca7b09cd8189d2f51b68a1346b2b31b5d12;hp=08b2d74036dc663f625d3b77be2eb2f8004df586;hpb=31f63fb6f736f55089ea102c16e0b77a3f0a0156;p=chaz%2Fopenbox 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);