multi-monitor, placement: size requests cause window to maximize, when moving to a larger monitor would be better

Bug #1078309 reported by Lalo Martins
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
New
Undecided
Unassigned
compiz (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 12.10
Release: 12.10
compiz 1:0.9.8.4-0ubuntu3

I have two monitors of different sizes (laptop and external). I have emacs configured for a default frame size that makes efficient use of my external monitor. However, emacs opens with its default-default window size, then changes when it reads my init file.

“Smart” placement will more or less randomly place it in either monitor, depending on the apps I have open at the moment, where my mouse cursor is, the day of the week, and direction of the wind. It's fine when it places it on the external, but when it's placed on the laptop, it then tries to resize to larger than would fit on the screen.

Expected: the window would be moved to the large monitor, where it fits.

What happens instead: it gets maximized; unmaximizing it and then moving it doesn't make it the right size. I have to “Open new frame...” from the emacs menu, then close the old one.

This of course happens with other apps too, it's just easier to reproduce with emacs due to the fact that it reads its init file after the window has already been drawn.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Trying to understand the exact problem... can I retitle this to:
"Window opens maximized on a smaller monitor instead of opening on a larger monitor where it would fit"
?

Changed in compiz:
status: New → Incomplete
Changed in compiz (Ubuntu):
status: New → Incomplete
Revision history for this message
Lalo Martins (lalo.martins) wrote :

Sorry, I think the description was pretty clear, with instructions to reproduce it, no?

Here's the exact lisp that makes it happen for me:
(setq default-frame-alist '((width . 100) (height . 50)))

I don't know if it happens when windows *open*, if it does it would be nice to fix them too; it does happen when they resize themselves, that was what the bug was about.

summary: - multi-monitor, placement: attempt to satisfy size request by opening on
- the monitor where it fits
+ Window opens maximized on a smaller monitor instead of opening on a
+ larger monitor where it would fit
Changed in compiz:
status: Incomplete → New
Changed in compiz (Ubuntu):
status: Incomplete → New
summary: - Window opens maximized on a smaller monitor instead of opening on a
+ multi-monitor, placement: attempt to satisfy size request by moving to a
larger monitor where it would fit
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: multi-monitor, placement: attempt to satisfy size request by moving to a larger monitor where it would fit

Please clarify the bug title so that it describes the problem, rather than a desired solution.

Changed in compiz:
status: New → Incomplete
Changed in compiz (Ubuntu):
status: New → Incomplete
Revision history for this message
Lalo Martins (lalo.martins) wrote :

I'm sorry to be rude/passive-aggressive, but have you actually read the description? I have no idea how to make it more clear than that; it explicitly describes the problem, it has steps to reproduce it, and it explains why it's a problem. Does this title help?

summary: - multi-monitor, placement: attempt to satisfy size request by moving to a
- larger monitor where it would fit
+ multi-monitor, placement: size requests cause window to maximize, when
+ moving to a larger monitor would be better
Revision history for this message
Lalo Martins (lalo.martins) wrote :

I guess I phrased the title as a feature request because it didn't feel like a very high priority bug, sorry if that was confusing. I'm sure you're busy.

Changed in compiz:
status: Incomplete → New
Changed in compiz (Ubuntu):
status: Incomplete → New
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.