Wrong window geometry when snapping to left or right

Bug #1670308 reported by cipricus
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Files
Fix Released
Medium
Jeremy Wootten

Bug Description

Expected behavior: dragging the window to the left or right edge of the screen: the window takes left or right half of the screen. - This can be seen with many applications.

What happens after a recent late February or early March 2017 update is:

- dragging the window to the left edge of the screen: the window takes about 5/6 of the screen from left to right and 3/4 of the screen from bottom to top

- dragging the window to the right edge of the screen: the window takes about 5/6 of the screen from right to left and 3/4 of the screen from bottom to top.

Dragging the window to the upper edge of the screen works as expected: the window is maximized.

Revision history for this message
cipricus (cipricus) wrote :
description: updated
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

I am not getting this using the compiled source (As I have multiple desktops, I use <Ctrl><Super><RightArrow> and <Ctrl><Super><LeftArrow> to tile the window). What is your screen resolution? It might have something to do with the recently imposed minimum window dimensions for Files.

Changed in pantheon-files:
status: New → Incomplete
Revision history for this message
Gre0 (gre0) wrote :

Same problem after the last updates.
Screen resolution is 1600x900.

After changing resolution to 1920x1080 it works as expected and when i go back to 1600x900 the problem is back.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

The minimum window size for Files was recently set to 910 x 640 so when the screen resolution is 1600 x 900 the tiled size of 800 x 900 would be too small. I think this minimum size will have to be rethought so that it is dependent on the screen resolution.

Changed in pantheon-files:
status: Incomplete → Confirmed
importance: Undecided → Medium
milestone: none → juno-beta1
Revision history for this message
Gre0 (gre0) wrote :

Theoretically you are right...but now i'm confused because of my setup...

I've set a resolution of 1600x900 (because 1920x1080 is to small) and like you said, it should not be possible. But why i can tile the windows manually with the mouse to left or right...without the 'snappy bling bling behavior' ?

After this i made a screeenshot of the active window...it says, the window is ~910x1024 !?
Does this has something to do with the native resolution of the screen?

Btw...switchboard also does not tile correctly.

Changed in pantheon-files:
assignee: nobody → Jeremy Wootten (jeremywootten)
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

I am not sure why there is different behaviour depending on how you tile the window - something to do with the window manager I guess. Anyway, the minimum window size for Files is being reduced to 500 x 300 which should fix the problem. I'll look into the switchboard problem but it will need to be reported/fixed in that project.

Revision history for this message
cipricus (cipricus) wrote :

@jeremywootten - My case for <Ctrl><Super><RightArrow> and <Ctrl><Super><LeftArrow>:

- when the window is maximized: they do nothing at all

- when the window is not maximized (is in the middle of the screen): one does nothing, the other triggers a short flicker (and nothing else)

Changed in pantheon-files:
status: Confirmed → In Progress
Changed in pantheon-files:
status: In Progress → Fix Committed
Cody Garver (codygarver)
Changed in pantheon-files:
milestone: juno-beta1 → 0.3.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.