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
Wayland support #32
Comments
Same with gnome-terminal, for example. |
Hi, I'm using gnome 3.22.2 on Xorg and this extension doesn't work with any of applications with simple title bar, and I think this extension is a "must have", so I'll appreciate if you consider a fix. |
Same problem here - how can I help by looking into adapting this to Wayland? |
I'm not sure, but there needs to be some kind of support for this in Gtk+3, right? So the first thing to do would be to open a bug report at their Bugzilla page. |
The main problem I believe is the function |
The main problem is that window decorate themselves in wayland, not the
window manage.
…On Nov 24, 2016 11:55, "César Izurieta" ***@***.***> wrote:
The main problem I believe is the function guessWindowXID(win) in
decoration.js that tries to use xwininfo and xprop to find the window id
and then getOriginalState(win) that uses that function. The problem is
that AFAIK there's no replacement on wayland for those functions.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA0IaeEz2Oc16_joGCzWzEctQizyx4edks5rBevAgaJpZM4FUmpP>
.
|
pixel-saver sets the |
Mutter isn't drawing the decorations anymore, but e. g. Gtk+ 3. |
@jhasse Do you know where is that happening? I'm really not sure how it works exactly but mutter has a I believe that, if it would be possible to set that property from the proxy window in js, the title bar should be gone without all the |
I've just added a PR that adds support for future mutter versions over wayland. See #98. Sadly mutter ignores the In any case the PR still works for X11 without the need to call |
I can confirm that it works with patched mutter and patched pixel-saver. Thanks! |
@cesarizu do you think this can be merged in mutter soonish ? If so, any idea how long before this is widespread ? Awesome detective work, BTW ! |
I'm not really sure. And it's not really working completely with wayland. I'm still looking into how to set the |
I assume a native wayland app wouldn't use any kind of standard title bar, so not sure there is a way to collapse it anyway. Just like Chromium for instance, or recent gnome apps with all kind of features in their title, there is not much you can do (and that's fine, their title bar is utilized efficiently, rather than wasted). |
I've only looked into gtk+ apps like gnome-terminal. AFAIK Qt was implementing their own wayland protocol for SSD but I'm not sure if that's done and if mutter understands it and respects the Also I believe that the rest of X11 apps running on wayland (like firefox, chrome) do respect the TL;DR I think this needs to be solved first for gtk+ apps on wayland, then for other wayland apps. X11 apps on wayland are not a problem. |
Maybe here are some additional ideas worth mentioning (they use wmctrl). Haven't checked and Wayland is only mentioned in two sentences... but hey, just my 2 cent |
For those who wants to run gtk+ apps using x11(xwayland), use this command export XDG_SESSION_TYPE=x11; export GDK_BACKEND=x11; export DISPLAY=:0; dbus-launch gnome-terminal |
Thanks @hamiller ... that link was very useful. I found Florian Müllner's small test program and it allowed me to replicate the same non hiding problem on X11 too for gtk+ windows with csd. It also helped me verify that setting the Now for the solution I'm starting to think that for those cases that don't hide the titlebar (gtk with csd) it would be easier to patch gtk and make |
I've just posted a new patch for gtk at the gnome's bugzilla that adds a GSettings configuration option to hide windows' title bars when maximized. This takes care of gtk+ top level windows with csd (the ones that pixel saver cannot handle). I built patched packages for openSUSE tumbleweed here:
After installing those packages you just need to run:
After that (with or without pixel-saver) all gtk+ apps (csd and ssd) will hide their title bars when maximized. |
Wow. Thank you so much :) |
@cesarizu Would that hide title bar for window that use the new gnome3 style title bar ? I don't think that' desirable because you'd lose functionality and you'd have to unmaximize, use the button and remaximize. |
@deadalnix, no, it won't. It just takes care of normal old-style titlebars. What this actually does is set the |
Basically patch # 1 (for mutter) allows pixel-saver to access Patch # 2 (gtk) sets the There's still the question about other wayland apps, like qt wayland apps. I haven't tried yet any so I cannot comment on that. |
@cesarizu Awesome. Let's see how the upstream process goes. Also, I noticed that the hide title bar behavior by default in gtk changed for window that are maximized left/right . Maybe a show_title_bar(true/false) would be more useful in the general case ? |
@deadalnix I think it's a bug. Tiled windows should also hide their title bars as well. I'll try to post a new patch that fixes that case. |
As far as Pixel saver is concerned, window that are maximized left/right shouldn't see their title bar disapear. At some point, they started to be, but I'm not sure what version changed this. |
I would also prefer if tiled windows keep their titlebar :) |
Looking at mutter's history there was a period of time (jun 2015 - jan 2016) that it didn't hide tiled windows title bars, but it was considered a bug and "fixed". The gtk code is really similar and they are interconnected, so I believe that this difference in behavior is just an overlook and the gtk developers meant to hide the title bars in both cases. Most tiling window managers do hide titlebars when windows are tiled, so I think this is was it's aimed for. Mutter has a very limited tiling capability, but as @deadalnix said, a more general show/hide function for titlebars would allow better control of this case so extensions that want to control that more specifically, like this one, can do that. In any case right now I can not find a way to access wayland gtk windows from a gnome-extension, so it's not possible to control those properties for those windows from the extension, that's why I created the dconf patch. Im waiting for some feedback from the gnome developers to see how I should proceed. |
Hi, great stuff, using wayland in gnome3 here. Do we still need your patch to set the
|
Yes. It is not planned to be merged, see https://bugzilla.gnome.org/show_bug.cgi?id=775061 |
@jhasse I understood it would go into GTK+ 4, is that right? |
If I understand it correctly: No, Gtk+ 4 just removed the |
The correct way to do it now would probably be to use CSS. |
That only works for gtk+ apps though :/ |
Just like hide-titlebar-when-maximized did. |
This is annoying, this is honestly the only thing that prevents me from running always on Wayland now. |
Well at least it did work with X11, but now it won't work at all after GTK+ 4 which I also find very annoying. I guess we should be used to have features taken away by now... I hope somebody finds a workaround :( |
Hi, first thanks for this wonderful screen-space-saving extension and it's unfortunate that it's not working on wayland. Fortunately, someone posted a gtk.css config which completely removes titlebars by using negative margins and this works even on wayland: Titlebars are completely gone with this (I am using ubuntu gnome 17.04). However, one has to get used to it (tip: you can drag windows around by pressing alt and grabbing it with the mouse) but for me this solution is good enough. Maybe this addon could make use of theses css tricks. |
I got a first part of this working in my fork, using the CSS style. The work is based off what was done in the "unite" extension. It only works for title bars, not for the whole CSD bar (as it would remove too many tools). Comments appreciated. [7059f4a] |
@franglais125 first of all, thank you for your work. I tried using the latest version on Fedora 30 (with Wayland) and after enabling pixel-saver it works for a little bit, and then hangs gnome shell so I can't move my mouse or switch to console. |
Right now pixel saver works well on X.org applications inside Wayland. A feasible workaround for GTK3 applications (QT still uses X.org inside Shell wayland session) which still use a titlebar is to launch them with
|
First, I'd like to thank you, deadalnix. Since my previous solution with Status Title Bar and a metacity theme hack broke with 3.16, I've been on the lookout for something that actually worked, and this one does.
So, since this extension uses xprop, it only works on X windows. Since I use Wayland, GTK3 applications do not shed their titlebar when maximized. This is generally not dramatic because most of them have an action bar anyway, but Evolution still uses a simple title bar. It would be great if I could remove its titlebar as well.
The text was updated successfully, but these errors were encountered: