]> git.decadent.org.uk Git - ion3.git/commitdiff
Added patches to fix the Docker size problem.
authorBen Hutchings <ben@decadent.org.uk>
Sun, 6 Jan 2008 21:07:50 +0000 (21:07 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 2 Nov 2008 12:45:41 +0000 (12:45 +0000)
Tuomo confirmed that the change to using the icon window's class name was a bug.

debian/changelog
debian/patches/105_dockapp-class-from-hint-window.diff [new file with mode: 0644]
debian/patches/213_unkludge-docker.diff [new file with mode: 0644]
debian/patches/series

index fe60902835d160239f73d072d355be3551a361e9..869af832ce88008cad6a02d338528f6b2378af9c 100644 (file)
@@ -1,8 +1,11 @@
 ion3 (20080103-1) unstable; urgency=low
 
   * New upstream version
+  * Fixed upstream regression which lost dockapp class names
+    (105_dockapp-class-from-hint-window.diff)
+  * Disabled dockapp size kludge for Docker (213_unkludge-docker.diff)
 
- -- Ben Hutchings <ben@decadent.org.uk>  Sun, 06 Jan 2008 01:43:32 +0000
+ -- 
 
 ion3 (20071109-1) unstable; urgency=low
 
diff --git a/debian/patches/105_dockapp-class-from-hint-window.diff b/debian/patches/105_dockapp-class-from-hint-window.diff
new file mode 100644 (file)
index 0000000..eac4f2d
--- /dev/null
@@ -0,0 +1,19 @@
+--- ion3.orig/ioncore/clientwin.c
++++ ion3/ioncore/clientwin.c
+@@ -509,13 +509,13 @@
+                 xwindow_unmanaged_selectinput(win, 0);
+                 xwindow_unmanaged_selectinput(icon_win, StructureNotifyMask);
+-                win=icon_win;
+-                attr=icon_attr;
+-
+                 /* Copy WM_CLASS as _ION_DOCKAPP_HACK */
+                 p=xwindow_get_text_property(win, XA_WM_CLASS, &n);
+                 
++                win=icon_win;
++                attr=icon_attr;
++
+                 if(p!=NULL){
+                     xwindow_set_text_property(icon_win, ioncore_g.atom_dockapp_hack,
+                                               (const char **)p, n);
diff --git a/debian/patches/213_unkludge-docker.diff b/debian/patches/213_unkludge-docker.diff
new file mode 100644 (file)
index 0000000..cc38dcb
--- /dev/null
@@ -0,0 +1,16 @@
+--- ion3.orig/etc/cfg_kludges.lua
++++ ion3/etc/cfg_kludges.lua
+@@ -26,6 +26,13 @@
+     min_size = { w = 64, h = 64},
+ }
++-- Make an exception for Docker, which sets correct size hints.
++defwinprop{
++    is_dockapp = true,
++    class = "Docker",
++    statusbar = "systray",
++}
++
+ -- You might want to enable these if you really must use XMMS. 
+ --[[
index 40d9a1d82fd74063944ccddea830d5c18a91665b..9eef4474929158e6811f87174e318451b92d435e 100644 (file)
@@ -1,3 +1,4 @@
+105_dockapp-class-from-hint-window.diff
 201_build-config.diff
 205_ion-lock.diff
 206_use-x-terminal-emulator.diff
@@ -5,3 +6,4 @@
 210_use-cfg_debian_ext.diff
 211_add-debian-menu.diff
 212_suggest-ion3-doc.diff
+213_unkludge-docker.diff