On Tue, 5 Apr 2011, Lucius Windschuh wrote:
> 2011/4/5 Tamas TEVESZ <[email protected]>:
> > no particular hurry; apparently it's only ambrus and me running
> > xinerama, we are covered for now, so just take your time ;)
>
> In fact, no. :-)
> There is a quick fix flying around for a long time that, well, "works":
"qt" was a big hint ;) for some reason i remembered this to also
affect my gtk things. also this route seems to be the one taken by
other wms as well, so i'm not against following suit.
however, i believe that if _NET_WORKAREA is neutered, the frippery
should go as well. do test the following for proof of concept.
diff --git a/src/screen.c b/src/screen.c
index 782ea1e..90b8e43 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -893,8 +893,9 @@ void wScreenUpdateUsableArea(WScreen * scr)
}
}
}
-
+#if 0
wNETWMUpdateWorkarea(scr, area);
+#endif
if (wPreferences.auto_arrange_icons)
wArrangeIcons(scr, True);
diff --git a/src/wmspec.c b/src/wmspec.c
index d166d28..b4f4dcb 100644
--- a/src/wmspec.c
+++ b/src/wmspec.c
@@ -68,7 +68,9 @@ static Atom net_desktop_viewport;
static Atom net_current_desktop;
static Atom net_desktop_names;
static Atom net_active_window;
+#if 0
static Atom net_workarea; /* XXX: not xinerama compatible */
+#endif
static Atom net_supporting_wm_check;
static Atom net_virtual_roots; /* N/A */
static Atom net_desktop_layout; /* XXX */
@@ -144,7 +146,9 @@ static atomitem_t atomNames[] = {
{"_NET_CURRENT_DESKTOP", &net_current_desktop},
{"_NET_DESKTOP_NAMES", &net_desktop_names},
{"_NET_ACTIVE_WINDOW", &net_active_window},
+#if 0
{"_NET_WORKAREA", &net_workarea},
+#endif
{"_NET_SUPPORTING_WM_CHECK", &net_supporting_wm_check},
{"_NET_VIRTUAL_ROOTS", &net_virtual_roots},
{"_NET_DESKTOP_LAYOUT", &net_desktop_layout},
@@ -253,7 +257,9 @@ static void setSupportedHints(WScreen * scr)
atom[i++] = net_current_desktop;
atom[i++] = net_desktop_names;
atom[i++] = net_active_window;
+#if 0
atom[i++] = net_workarea;
+#endif
atom[i++] = net_supporting_wm_check;
atom[i++] = net_showing_desktop;
#if 0
@@ -629,6 +635,7 @@ void wNETWMUpdateActions(WWindow * wwin, Bool del)
XA_ATOM, 32, PropModeReplace, (unsigned char *)action,
i);
}
+#if 0
void wNETWMUpdateWorkarea(WScreen * scr, WArea usableArea)
{
long *area;
@@ -654,6 +661,7 @@ void wNETWMUpdateWorkarea(WScreen * scr, WArea usableArea)
wfree(area);
}
+#endif
Bool wNETWMGetUsableArea(WScreen * scr, int head, WArea * area)
{
--
[-]
mkdir /nonexistent
--
To unsubscribe, send mail to [email protected].