Giter Site home page Giter Site logo

Comments (16)

franglais125 avatar franglais125 commented on May 30, 2024 1

@rhythmthief @tradespite any one of mind testing https://github.com/franglais125/no-title-bar/tree/vertical_windows?

I included two options (for buttons and app menu) to toggle this. I want to make sure it works, but also that it doesn't introduce regressions for people who don't want this!

Thanks in advance!

from no-title-bar.

franglais125 avatar franglais125 commented on May 30, 2024 1

@rhythmthief Thanks a lot for the quick feedback!

leads to a situation where you have controls for the former and an app menu for the latter

Isn't this the case already for maximized windows as well? For instance, a maximized terminal, and a Nautilus window (non-maximized). App-menu belongs to Nautilus, while the controls belong to the terminal.

Since the beginning (when I used Pixel Saver), I found this a bit confusing, but then I realized it makes sense if we think of the top bar as being the title bar of the maximized app (except for the app-menu). I don't think we can workaround this though. Removing the buttons for snapped (and maximized) windows will break the experience of users who have bee using Pixel Saver for years.

Personally, I don't really use the buttons (I usually use the keyboard), so it didn't bother me.

But anyway, it is working, right? If I don't find any regressions (I'll also wait for @tradespite ), I'll merge this to master and release a new version soon.

from no-title-bar.

rhythmthief avatar rhythmthief commented on May 30, 2024 1

@franglais125 Yeah, the way it works right now actually makes a lot of sense, just threw me off for a moment. Doesn't look like there are any regressions either, so I think it's good to go. Thanks!

from no-title-bar.

franglais125 avatar franglais125 commented on May 30, 2024

Thanks a lot for reporting this! I think I saw the same issue reported for Pixel Saver. I will try to look into it. As usual, patches welcome if anyone finds a fix.

from no-title-bar.

tradespite avatar tradespite commented on May 30, 2024

Instead of fixing the described issue, isn't it better to ignore snapped windows from being undecorated?

If I have two snapped windows (one left, the other right) + the fix for this bug, I would always guess which one is currently on focus and hope not to close the wrong one.

from no-title-bar.

franglais125 avatar franglais125 commented on May 30, 2024

@tradespite that's a good point. My guess is many people will complain if we remove this, but I could see making this optional. What do you think?

from no-title-bar.

tradespite avatar tradespite commented on May 30, 2024

@franglais125 yes, of course, only optional through a feature toggle :)

But for the undecorated version for snapped windows, I still think it would be a bad behavior to show the control buttons.

from no-title-bar.

franglais125 avatar franglais125 commented on May 30, 2024

Some information: we could do this by looking for the property .tiled in the css node.

Source: https://developer.gnome.org/gtk3/stable/GtkWindow.html

from no-title-bar.

rhythmthief avatar rhythmthief commented on May 30, 2024

@franglais125 working fine for me! There is now a minor quirk where snapping a single window to the side and focusing some other window (which is not snapped) leads to a situation where you have controls for the former and an app menu for the latter, but honestly it's so small I don't think it's going to bother anyone too much. Thanks for everything!

from no-title-bar.

tradespite avatar tradespite commented on May 30, 2024

I tested it and I found a strange behaviour, maybe someone else could test it:
If I snapped a window via mouse to the right side, a black decoration is shown. (no other window is maximized)
bildschirmfoto von 2017-09-11 19-25-08
Snapping a window via keyboard shortcut (left and right) works fine.

These are my settings:
bildschirmfoto von 2017-09-11 19-29-16

@franglais125

Since the beginning (when I used Pixel Saver), I found this a bit confusing, but then I realized it makes sense if we think of the top bar as being the title bar of the maximized app (except for the app-menu). I don't think we can workaround this though. Removing the buttons for snapped (and maximized) windows will break the experience of users who have bee using Pixel Saver for years.

Yes, I also think it's correct, that the buttons are shown for the maximized window and the shown app menu is 'wrong'. But I have also no idea how to bypass this.

from no-title-bar.

franglais125 avatar franglais125 commented on May 30, 2024

@tradespite Is this snapping problem present only with the new branch? Or was it like that before as well?

Two more questions: what program is that, and what Gnome version are you running?

from no-title-bar.

tradespite avatar tradespite commented on May 30, 2024

In v5 I can reproduce it too.
So it isn't a bug from the new branch.

Gnome Version 3.24.2
Application: Nemo, but I can reproduce it also with Firefox

And now I see this isn't always...

from no-title-bar.

franglais125 avatar franglais125 commented on May 30, 2024

@tradespite Yeah, I've seen this happen as well. I don't think I can fix it, I'm sure it has something to do with the program miscalculating the geometry, due to the missing title bar. While this is a valid thing (removing the title bar), it's not very common, and I guess it is not very well tested upstream.

In my case, the worst offenders are Firefox and Rhythmbox. Anyway, thanks for the clarification!

I'll merge this soon then.

from no-title-bar.

franglais125 avatar franglais125 commented on May 30, 2024

I included this in master. I'll see if I can fix a few more things, and then I'll publish to e.g.o.

You can run this from git obviously for the time being!

Thanks a lot both of you for the feedback!

from no-title-bar.

rhythmthief avatar rhythmthief commented on May 30, 2024

@tradespite how consistent is it in your case? I couldn't reproduce it with either nautilus or Firefox, or any other application, really.

from no-title-bar.

tradespite avatar tradespite commented on May 30, 2024

@rhythmthief
sometimes I can reproduce it 5 times in a row... sometimes not...
Maybe it's a problem with another extension installed on my system.

from no-title-bar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.