window tabbing highlight broken for maximised windows
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Metacity |
Fix Released
|
Low
|
|||
metacity (Ubuntu) |
Fix Released
|
Low
|
Daniel Holbach |
Bug Description
When I use alt-tab to switch between windows, I see the outline of the window
drawn before I let go of the alt key.
This works for all windows other than maximised ones.
The code in metacity's screen.c calculates values for 'east' and 'south' both as
zero when the window is maximised, and ends up drawing the outline outside the
visible screen area.
For example, my screen is 1024x768 pixels.
A maximised window's frame is 1024x719 pixels, and the windows (non-frame)
content is 1024x696 pixels. Note that the frame is just a 23 pixel tall title
bar across the top - maximised windows don't have the 5 pixel wide border around
them that other windows have.
The two rectangles which end up being used to draw the frame are of sizes
1023x718 and 1025x720 respectively, which don't show up on my display.
I've attached a patch which uses the #defined value of OUTLINE_WIDTH whenever a
frame of width 0 would otherwise be drawn.
http://
Changed in metacity: | |
importance: | Unknown → Low |
Created an attachment (id=4273)
proposed patch