[PATCH] Desktop window behavior under tiling window managers.



This is a simple fix that allows the desktop window to behave as
expected under some tiling window managers (only tested in i3, but
presumably also applies to awesome and others).  It doesn't seem to
cause problems when running with metacity or other traditional window
managers (tested with gnome-shell, and metacity and matwm2 under
gnome's fallback session).  Cheers.
From 800068185f33a51de51605cf0b6c7b35ee8ff309 Mon Sep 17 00:00:00 2001
From: Kevin Murphy <kemurphy andrew cmu edu>
Date: Tue, 6 Mar 2012 08:34:51 -0500
Subject: [PATCH] Added small fix for desktop window to behave as intended
 with some tiling window managers.

---
 src/nautilus-desktop-window.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c
index b9b42f0..ff6a308 100644
--- a/src/nautilus-desktop-window.c
+++ b/src/nautilus-desktop-window.c
@@ -223,6 +223,9 @@ set_wmspec_desktop_hint (GdkWindow *window)
 
 	atom = gdk_atom_intern ("_NET_WM_WINDOW_TYPE_DESKTOP", FALSE);
         
+  gdk_window_set_override_redirect(window, TRUE);
+  gdk_window_lower(window);
+
 	gdk_property_change (window,
 			     gdk_atom_intern ("_NET_WM_WINDOW_TYPE", FALSE),
 			     gdk_x11_xatom_to_atom (XA_ATOM), 32,
-- 
1.7.9.3



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]