move windows dragging the menubar (gtk)
Posted: 16. Jan 2014, 00:16
It's nice to be able to move gtk windows not only by dragging the titlebar but also the menubar (its unpopulated part).
It is done with a patch to gtk+2.0 that requires no additional dependencies as the ability is already built into the libgtk,
it just needs to be enabled for menubar widget.
The patch is a tad less than 300 lines over four .c files.
Main patch:
https://git.gnome.org/browse/gtk+/commi ... 470c79d451
with a later one line correction of:
https://git.gnome.org/browse/gtk+/commi ... 6586d3f51f
Fedora, SuSE and Ubuntu apply it, Vector doesn't.
sample patch for Ubuntu:
https://bazaar.launchpad.net/~ubuntu-br ... ubar.patch
same for SuSE:
http://lists.opensuse.org/opensuse-comm ... 01513.html
Arch imported it from:
https://bug611313.bugzilla-attachments. ... ?id=155231
Some considerate gtk and WM themes accent/suggest this ability by making titlebar and menubar seamless in appearance (giving them the same color/gradient).
It is done with a patch to gtk+2.0 that requires no additional dependencies as the ability is already built into the libgtk,
it just needs to be enabled for menubar widget.
The patch is a tad less than 300 lines over four .c files.
Main patch:
https://git.gnome.org/browse/gtk+/commi ... 470c79d451
with a later one line correction of:
https://git.gnome.org/browse/gtk+/commi ... 6586d3f51f
Fedora, SuSE and Ubuntu apply it, Vector doesn't.
sample patch for Ubuntu:
https://bazaar.launchpad.net/~ubuntu-br ... ubar.patch
same for SuSE:
http://lists.opensuse.org/opensuse-comm ... 01513.html
Arch imported it from:
https://bug611313.bugzilla-attachments. ... ?id=155231
Some considerate gtk and WM themes accent/suggest this ability by making titlebar and menubar seamless in appearance (giving them the same color/gradient).