]> Pileus Git - wmpus/commitdiff
Allows selecting text in certain GTK+ programs
authorAndy Spencer <andy753421@gmail.com>
Wed, 13 Jun 2012 08:54:12 +0000 (08:54 +0000)
committerAndy Spencer <andy753421@gmail.com>
Wed, 13 Jun 2012 08:54:12 +0000 (08:54 +0000)
I don't know why you cant select text otherwise, it's probably because
X11 is insane. This has the down side of not automatically raising a
floating window when it is clicked on..

wm-wmii.c

index 094f3d1d362eb576b139669425f0fb627e0fab79..90e0616a6fca74835ccb99f9e119c3be8d2c54da 100644 (file)
--- a/wm-wmii.c
+++ b/wm-wmii.c
@@ -902,7 +902,7 @@ void wm_init(win_t *root)
        wm->tag     = tag_new(wm->screens, 1);
        wm->tags    = list_insert(NULL, wm->tag);
 
        wm->tag     = tag_new(wm->screens, 1);
        wm->tags    = list_insert(NULL, wm->tag);
 
-       event_t ev_e[] = {EV_ENTER, EV_FOCUS, EV_MOUSE1};
+       event_t ev_e[] = {EV_ENTER, EV_FOCUS};
        event_t ev_s[] = {'h', 'j', 'k', 'l', 'c', 'q', ' ',
                '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
        event_t ev_m[] = {'h', 'j', 'k', 'l', 'd', 's', 'm', 't', ' ',
        event_t ev_s[] = {'h', 'j', 'k', 'l', 'c', 'q', ' ',
                '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'};
        event_t ev_m[] = {'h', 'j', 'k', 'l', 'd', 's', 'm', 't', ' ',