GNOME Bugzilla – Bug 549979
move_to_center unimplemented
Last modified: 2008-09-01 02:18:48 UTC
Keyboard shortcuts can be configured to move a window to sides or corners of the screen, e.g. by using: $ gconftool-2 --type=string --set /apps/metacity/window_keybindings/move_to_side_n '<My>Shortcut' However, the move_to_center is not implemented, neither in the 2.22.0 version I am running, nor in the latest development version. Indeed, in the src/core/keybindings.c source file, the function handle_move_to_center() is unimplemented. Other information:
For the benefit of triage: are you saying that Metacity claims to be able to do move_to_center somewhere, and we don't do so (in which case this is a bug report about an unimplemented feature), or are you saying that Metacity doesn't claim to be able to do move_to_centre but it would be nice if it could (in which case this is an enhancement)?
Sorry if I wasn't clear or if I misfilled the bug report. I was just requesting an enhancement. The move_to_* features are the only advanced features I actually need. I kind of miss the icewm's move_to_centre which I find very handy. A move_to_centre feature would also enable the user to put a windows on one side, but centered, though with two keystrokes: move_to_centre followed by move_to_side_*.
Okay. Seems like a reasonable request (any naysayers?)
Created attachment 117727 [details] [review] move_to_center Best I can tell, this works. Does anyone (other than the reporter, obviously) have any opinions they'd like to share as to whether it should go in?
Created attachment 117731 [details] [review] move_to_center (same again) My mistake; got a flag backwards. Showed up in further testing.
Reporter: Um, sorry, I'd like to hear your opinions as well: I just meant that presumably you thought we should add this feature :)
Yeah, I've just run a freshly compiled metacity using your patch. (Well, it took me quite a long time before I found out I had to install some gnome-specific tools in order to be able to compile metacity.) All seems to work as expected. Hope the patch is to be included in next release :)
Okay, committed in trunk. Thank you!
( http://svn.gnome.org/viewvc/metacity?rev=3839&view=rev )