Bug 263212

Summary: Moving window my dragging empty areas doesn't work in Firefox/Thunderbird
Product: [Plasma] Oxygen Reporter: c2953420
Component: gtk2-engineAssignee: Hugo Pereira Da Costa <hugo.pereira.da.costa>
Status: CLOSED UPSTREAM    
Severity: normal CC: b7.10110111, hugo.pereira.da.costa, web
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description c2953420 2011-01-15 12:56:37 UTC
Version:           unspecified (using KDE 4.5.1) 
OS:                Linux

You cannot move Firefox/Thunderbird windows by dragging empty areas of the toolbars.
That's especially annoying in Fx4, where tab bar and title bar blend into each other when tabs-on-top is  enabled and the menu bar is hidden.

Reproducible: Always

Steps to Reproduce:
Try to drag the empty area next to the tabs

Actual Results:  
Nothing happens

Expected Results:  
Window is moved
Comment 1 Hugo Pereira Da Costa 2011-01-15 13:07:49 UTC
indeed won't work. Can't work.
Its due to the (ugly) way these apps use Gtk.
Same is true for openoffice.

If these were "real" Gtk applications that would not try re-invent the wheel and use Gtk as just a "facade" (some make-up to appear 'good' on top of ugly code), then it would work.

Can't do anything about it.
Comment 2 c2953420 2011-01-16 11:00:03 UTC
It's possible to make window moving working in Fx4 by adding this code to userChrome.css[1]:

toolbar:not(#toolbar-menubar), #toolbar-menubar:not([autohide=true]), .chromeclass-toolbar, hbox, vbox, windowdragbox {
	-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
}

Unfortunately, this will result in having the 'Chrome unmaximizes when clicking titlebar in KDE using the "Maximize windows by dragging to the top of the screen" feature'-issue[2] in Fx, too.

[1] http://kb.mozillazine.org/UserChrome.css
[2] http://code.google.com/p/chromium/issues/detail?id=37013
Comment 3 Hugo Pereira Da Costa 2011-01-16 11:13:46 UTC
Thanks for the info !
However, modifying css files for firefox is beyond the scope of a Gtk style ...