Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Fullscreening a window leaves a gap of size <border_width> for some clients #1607
Comments
psychon
added this to the v4.1 milestone
Feb 26, 2017
psychon
assigned
Elv13
Feb 26, 2017
Elv13
added a commit
to Elv13/awesome-1
that referenced
this issue
Feb 26, 2017
|
I added a client rule for mpv in rc.lua to set the |
psychon
added a commit
to psychon/awesome
that referenced
this issue
Mar 2, 2017
psychon
referenced this issue
Mar 2, 2017
Closed
WIP: Force a client's border width to be zero while fullscreen #1614
r3lgar
commented
Mar 4, 2017
|
Can't reproduce with mpv 0.24.0. |
lcpz
referenced this issue
in lcpz/awesome-copycats
Mar 12, 2017
Closed
multi-monitor window effects overhang #160
psychon
modified the milestones:
v4.2,
v4.1
Mar 18, 2017
jhnsmth
commented
Mar 25, 2017
|
Is there any chance this will be fixed soon ? I'm happy to help with that. |
psychon
referenced this issue
Apr 2, 2017
Closed
Unwanted transpartent border for fullscreen MPV related to fullscreen_hide_border since 4.1 #1696
sw9
commented
Apr 26, 2017
|
It appears that Virtualbox fullscreen also suffers from this issue. |
jhnsmth
commented
Apr 28, 2017
|
@blueyed sorry, this issue slipped my mind. I'll take another look over the weekend. |
|
I just came up for the following "oneliner" to work around this, no idea if it works: client.connect_signal("property::fullscreen", function(c)
if c.fullscreen then
gears.timer.delayed_call(function()
if c.valid then
c:geometry(c.screen.geometry)
end
end)
end
end)(When a client becomes fullscreen, then resize it to cover the fullscreen a short moment later) |
Ambrevar
commented
Apr 30, 2017
|
(An 'end' is missing) Does not work for me on 4.1. |
|
Whoops. Sorry for the missing |
Ambrevar
commented
Apr 30, 2017
|
Still does not work for me on 4.1. I tried mpv and mplayer. |
|
I tested in Xephyr with the default config and after Edit: BTW this was previously fixed in #701 and broken again in 631e75a |
psychon
added a commit
to psychon/awesome
that referenced
this issue
May 1, 2017
psychon
referenced this issue
May 1, 2017
Merged
Fix fullscreen clients with gravity != NorthWest #1764
jhnsmth
commented
May 8, 2017
|
Sorry for such a long delay. I did some testing... version 4.0.105.gbfb35349 - everything is fine. I also would like to mention a problem, which looks like copycat-killer/awesome-copycats#160 and might be related to this one. I have two screens and in some cases windows (e.g. thunar) overhang on the other screen. Unfortunately I didn't manage to find a stable reproducing scenario. But I believe the problem was related to maximized_horizontal and maximized_vertical, as after I unset them (with shortcuts) everything seems fine. It never happened with 4.0.105.gbfb35349. Hope this helps. |
psychon commentedFeb 26, 2017
Output of
awesome --version:As you wish: :-)
How to reproduce the issue:
Actual result:
To quote
xwininfo:Expected result:
The window should end up in the upper left corner of the screen.
Some more information on what is going on:
ICCCM brings us this great thing that is window gravities[*]. For
mplayerthe specified value can be seen here:For example Chromium does not have a
window gravity-entry in itsWM_NORMAL_HINTSand the bug is not reproducible with Chromium.What happens is that
awful.ewmhfirst callsawful.placement.maximizewithignore_border_width = trueand only later setsc.border_width = 0. Changing the border width invokes behaviour specified by ICCCM (changing the size without specifying a new position).mplayerhaving aStatic-gravity means that we should move it so that "it stays where it was before we added/removed window decorations", which means the window is shifted to the bottom/right by its previous border width (well, stays where the border previously moved it...).No idea how this should be fixed. Anyone wants to hack the C code so that the gravity is more-or-less ignored for changes done from Lua and only applied in places where ICCCM requires us to do so?
[*]: Actually, gravities are an X11-thing, but ICCCM adds them to one more use and this bug happens to be about this part...
P.S.: Assigning to the v4.1 milestone under the assumption that this might be a regression. I haven't actually checked. Anyone who thinks "this is not a regression" or "this shouldn't be in the milestone" is free to remove it (assuming he has the necessary access rights for that...).
P.P.S.: Assigning to @Elv13 since this is about "his" code and I do not have a good right now and am on sick leave anyway.
P.P.P.S.: By the way, should we do something about all the places of code which have
EWMHin their name, but are actually implementing things fromICCCM?CC @karlyeurl