Package: matchbox-keyboard
Version: 0.1+svn20080916-1
Severity: normal
Tags: patch

The attached patch adds support for xmonad. Without this
patch, matchbox-keyboard can be focused like any other window,
which makes it not useful. With the patch, xmonad does not manage
it at all.

It might be better to use the STRUTS property to communicate
with xmonad, but just uncommenting the code that was already
there Worked for Me.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages matchbox-keyboard depends on:
ii  libc6                         2.9-19     GNU C Library: Shared libraries
ii  libexpat1                     2.0.1-4    XML parsing C library - runtime li
ii  libfakekey0                   0.1-1      library for converting characters 
ii  libpng12-0                    1.2.37-1   PNG library - runtime
ii  libx11-6                      2:1.2.1-1  X11 client-side library
ii  libxft2                       2.1.13-3   FreeType-based font drawing librar
ii  libxrender1                   1:0.9.4-2  X Rendering Extension client libra
ii  libxtst6                      2:1.0.3-1  X11 Testing -- Resource extension 

matchbox-keyboard recommends no packages.

matchbox-keyboard suggests no packages.

-- no debconf information

-- 
see shy jo
--- matchbox-keyboard-ui.c.orig	2009-07-13 20:20:58.000000000 -0400
+++ matchbox-keyboard-ui.c	2009-07-13 20:21:54.000000000 -0400
@@ -643,6 +643,7 @@
   char                *wm_name;
   boolean              have_matchbox_wm = False;             
   boolean              have_ewmh_wm     = False;             
+  boolean              have_xmonad_wm   = False;             
 
   /*
   atom_wm_protocols = { 
@@ -698,6 +699,8 @@
 
   if (wm_name && streq(wm_name, "matchbox"))
     have_matchbox_wm = True;
+  else if (wm_name && streq(wm_name, "xmonad"))
+    have_xmonad_wm = True;
 
   win_attr.override_redirect = False; /* Set to true for extreme case */
   win_attr.event_mask 
@@ -813,15 +816,12 @@
 			      PropModeReplace, 
 			      (unsigned char *) &atom_NET_WM_WINDOW_TYPE_TOOLBAR, 1);
 	    }
-	  else
+	  else if (have_xmonad_wm)
 	    {
-	      /*
 		XChangeProperty(ui->xdpy, ui->xwin, 
 		atom_NET_WM_WINDOW_TYPE, XA_ATOM, 32, 
 		PropModeReplace, 
 		(unsigned char *) &atom_NET_WM_WINDOW_TYPE_DOCK, 1);
-	      */
-	      
 	    }
 	}
     }

Attachment: signature.asc
Description: Digital signature

Reply via email to