Activity log for bug #1778565

Date Who What changed Old value New value Message
2018-06-25 16:44:22 Stephen Karanja bug added bug
2018-06-25 16:44:22 Stephen Karanja attachment added Patch for gtk-window-decorator.c https://bugs.launchpad.net/bugs/1778565/+attachment/5156480/+files/gtk-window-decorator.c.patch
2018-06-25 16:49:18 Stephen Karanja attachment added Patch for events.c https://bugs.launchpad.net/compiz/+bug/1778565/+attachment/5156484/+files/events.c.patch
2018-06-25 16:58:25 Stephen Karanja description Hi Guys, When /usr/bin/gtk-window-decorator is configured as Compiz's window decorator, windows don't maximize when double-clicked, even though this is the configured behavior for the titlebar double-click action. The window maximization is prevented by the low double-click timeout hard-coded into Compiz (250 milliseconds). I bet it would be tough for most folks to register two clicks within 250 ms. See line 110 in gtk/window-decorator/gtk-window-decorator.c. gint double_click_timeout = 250; I'm wondering whether this low timeout was chosen arbitrarily or whether there's a reason for it. I've attached two patches, either of which solves this issue for me: gtk-window-decorator.c.patch - This patch simply increases the above timeout value to 550 milliseconds; a more pragmatic value for me. For others? I can't say. events.c.patch - This patch changes title_event() in gtk/window-decorator/events.c to read "gtk-double-click-time" and "gtk-double-click-distance" from GtkSettings, as set by the user. I borrowed this from Marco window manager's code. I'd like to see this fixed using whichever way is most appropriate so that I (and probably others) can have window maximization upon double-clicking the titlebar. Thanks. Hi Guys, When /usr/bin/gtk-window-decorator is configured as Compiz's window decorator, windows don't maximize when double-clicked, even though this is the configured behavior for the titlebar double-click action. The window maximization is prevented by the low double-click timeout hard-coded into Compiz (250 milliseconds). I bet it would be tough for most folks to register two clicks within 250 ms. See line 110 in gtk/window-decorator/gtk-window-decorator.c.     gint double_click_timeout = 250; I'm wondering whether this low timeout was chosen arbitrarily or whether there's a reason for it. I've attached two patches, either of which solves this issue for me: a) gtk-window-decorator.c.patch - This patch simply increases the above timeout value to 550 milliseconds; a more pragmatic value for me. For others? I can't say. b) events.c.patch - This patch changes title_event() in gtk/window-decorator/events.c to read "gtk-double-click-time" and "gtk-double-click-distance" from GtkSettings, as set by the user. I borrowed this from Marco window manager's code. I'd like to see this fixed using whichever way is most appropriate so that I (and probably others) can have window maximization upon double-clicking the titlebar. Thanks.