-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Gtk.Window.set_position() and/or Gtk.Window.move() #910
Comments
This could be added to the place plugin, a match with position, or it could be added to window-rules plugin. |
The place plugin affects all the windows. The ideal solution would be if it worked as it does, unless the window placement is forced with the set_position or move method. |
I didn't realize you meant from client-side gtk.. These work without place plugin enabled already? Can you provide some example client/gtk code that does what you expect? |
Also, do these functions work in gnome wayland shell? |
Haha! I haven't seen GNOME for over 2 years :))) No idea. On X11 it works, AFAIK. Out of boredom I started working on a gadget like this: https://youtu.be/mMdkhjKs9ug It looks not bad centered, but e.g. on Openbox I can attach it to a tint2 button, and it opens in the mouse pointer position, which gives a GNOME-like look and feel. It would be not bad to have the same behevior on Wayfire + Waybar. |
Wow, this is awesome! I will try building it now. |
Thanks! I'm not sure if |
For sure you'd need commands: |
Thanks! I will file an issue there if I have trouble. |
This is really impossible on Wayland. Clients do not know their position and should not be able to change it. The only exception so far are layer-shell surfaces. You could use window-rules to create per-window placement rules. |
Out of curiosity I installed GNOME on my testing laptop. Both methods only work on the Xorg session. |
@nwg-piotr With #912 and this WIP plugin (applies to latest wayfire-plugins-extra), right-click on gtk apps' titlebars runs nwgcc and positions it. If you add |
Will it be enough to build everything from master? [edit] and apply the patch? |
No, you'd have to use the 912 PR branch of show-window-menu for wayfire and apply the patch to wayfire-plugins-extra master with |
OMG, I'll better wait for it to be merged :D |
@soreau I added a switch in preferences to switch |
@nwg-piotr The Wayfire PR has been merged, so you just need to update to master Wayfire. For extra plugins, you need WayfireWM/wayfire-plugins-extra#65 |
@nwg-piotr #912 has already been merged and there is wayfire-plugins-extra/#65 for the plugin, so you only need wayfire/master and the wayfire-plugins-extra/window-menu branch. |
For some reason I can't build it.
|
@nwg-piotr You should use the same |
An easy way to do this with wf-install:
Then run /opt/wayfire/bin/startwayfire as usual and enable the Window Menu plugin. |
Thank you! It looks cool, even though I had to turn window decorations on for the first time. :D |
I know we have the Place plugin, but when it's turned off, it would be great to be able to affect the window position programmatically, e.g.
window.set_position(Gtk.WindowPosition.MOUSE)
. Or at least to move it to desired coordinates withwindow.move(x, y)
. Could it be considered?The text was updated successfully, but these errors were encountered: