Giter Site home page Giter Site logo

Comments (5)

phillipberndt avatar phillipberndt commented on May 28, 2024

I'll be on vacation for the next two weeks, but afterwards, I'll have a look.

For now: I suspect that this is (partially) a WM bug. Fullscreening in X11 happens via a hint to the WM, and it's the WM's responsibility to resize and place the window accordingly. (I do have some code in place to fullscreen when using -f and there is no WM present though, but that shouldn't trigger when you fullscreen using the f key or your WM's controls.) In your screenshot, the window covers only half the screen, so clearly something went wrong when resizing. For starters, you could test if other fullscreen applications work. Run the following Python script (needs pygtk):

import gtk
w = gtk.Window()
w.connect("hide", gtk.main_quit)
w.show()
# Try playing around with the aspect ratio (values from 0.0 to 1.0) and/or size requests
# I suspect that the aspect ratio plays a role
#aspect = 1
#w.set_size_request(400, 600)
#w.set_geometry_hints(min_aspect=aspect, max_aspect=aspect)
w.fullscreen()
gtk.main()

It should display an empty, fullscreen window. (Quit with your wm's hotkey)

from pqiv.

adia avatar adia commented on May 28, 2024

Thanks for the quick reply!

Other full-screen apps seem to work correctly (that's why I asked here first) but the script above behaves inconsistently depending on the size request and aspect ratio, although if it requests the same size as the screen (1280x1024), full-screen works whatever the aspect.

I'll try asking about this at the awesome mailing list and report back.

from pqiv.

phillipberndt avatar phillipberndt commented on May 28, 2024

I've been able to reproduce the bug. IMHO, what you experience is a bug in awesome wm. I haven't been able to track down the bug to its source though - their function for applying the aspect ratio, client_apply_size_hints, is not involved in the call to client_resize_do with the wrong geometry, but the bug still depends on requesting an aspect ratio not fitting the screen's prior to going fullscreen.

However, I think I've found a workaround. See the awesome-fs-bugfix branch.

from pqiv.

adia avatar adia commented on May 28, 2024

Thanks for tracking the problem down and the workaround! This change indeed makes everything work correctly. Do you plan to incorporate it into the next release?

I'm sorry, I didn't ask awesome's developers about the problem yet, but I intend to do it right now, referencing this bug report.

from pqiv.

phillipberndt avatar phillipberndt commented on May 28, 2024

I think so, because it does not seem to have any side effects. I'll do some further testing beforehand though..

from pqiv.

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.