]> Dogcows Code - chaz/openbox/commitdiff
Hear screen resizes when they don't change the root window (cloning)
authorDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 01:04:21 +0000 (21:04 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:51:52 +0000 (18:51 -0400)
openbox/screen.c

index f7d39fb59990b2d768899131271a6bc03e9d12de..91bbb4e75c694f9bac4fbefd87a3141ff1ed366f 100644 (file)
@@ -480,7 +480,6 @@ void screen_shutdown(gboolean reconfig)
 
 void screen_resize(void)
 {
-    static gint oldw = 0, oldh = 0;
     gint w, h;
     GList *it;
     gulong geometry[2];
@@ -488,10 +487,6 @@ void screen_resize(void)
     w = WidthOfScreen(ScreenOfDisplay(obt_display, ob_screen));
     h = HeightOfScreen(ScreenOfDisplay(obt_display, ob_screen));
 
-    if (w == oldw && h == oldh) return;
-
-    oldw = w; oldh = h;
-
     /* Set the _NET_DESKTOP_GEOMETRY hint */
     screen_physical_size.width = geometry[0] = w;
     screen_physical_size.height = geometry[1] = h;
@@ -504,9 +499,8 @@ void screen_resize(void)
     /* this calls screen_update_areas(), which we need ! */
     dock_configure();
 
-    if (oldw)
-        for (it = client_list; it; it = g_list_next(it))
-            client_move_onscreen(it->data, FALSE);
+    for (it = client_list; it; it = g_list_next(it))
+        client_move_onscreen(it->data, FALSE);
 }
 
 void screen_set_num_desktops(guint num)
This page took 0.023643 seconds and 4 git commands to generate.