Unity maximizes windows that don't support resize on launch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Fix Released
|
Undecided
|
Cameron Hart | ||
unity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Install unity 3.8.14 from natty-proposed. Then logout and login again in the session
Test case:
- Compile the attached test program
- Run the program with the following $ values replaced with values for your screen: ./test $width_of_screen $height_of_screen
-> Window should not maximise automatically as it has a maximium size set that is lower than the size it would be if it were maximised by unity
Unity automatically maximizes application windows that take up more that 75% of the screen when they are launched. It doesn't check the maximum size of the window when doing this. This means the window is undecorated but remains at its original size.
This is a problem for applications that don't support resizing like SDL windows if the SDL_RESIZABLE flag is not set.
Attached is a sample SDL program which demonstrates the problem.
I also found a memory leak in PluginAdapter:
Related branches
- Sam Spilsbury (community): Approve
-
Diff: 44 lines (+6/-7)1 file modifiedsrc/PluginAdapter.cpp (+6/-7)
Changed in unity: | |
status: | New → Confirmed |
Changed in unity (Ubuntu): | |
status: | New → Confirmed |
Changed in unity: | |
assignee: | nobody → Cameron Hart (bitshifternz) |
Changed in unity: | |
status: | Confirmed → Fix Committed |
Changed in unity (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in unity: | |
milestone: | none → 3.8.14 |
description: | updated |
Changed in unity: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package unity - 3.8.14-0ubuntu1
---------------
unity (3.8.14-0ubuntu1) oneiric; urgency=low
* New upstream bug-fix release. compiz_ profile( ): 'str' base::impl( ) (LP: #762801) patches/ 01_add_ scp_to_ systray. patch:
- In a dual monitor setup with different resolutions, Unity places windows
in the "dead zone" (LP: #752098)
- Left pixel of launcher is not clickable on session start (LP: #758026)
- unity crashed with AttributeError in reset_unity_
object has no attribute 'get_string' (LP: #737320)
- unity --reset crashes with NameError (LP: #774280)
- Bottom icon on launcher tilts when it maybe shouldn't if icons fill
launcher nearly exactly (LP: #728949)
- Dodge active window - launcher should not show when modal dialog is
opened (LP: #718185)
- Unity maximizes windows that don't support resize on launch (LP: #769781)
- compiz crashed with SIGSEGV in sigc::signal_
- inactive menus becomes brighter on sub-sequent clicks (LP: #733740)
- Unity crashes when dynamic quicklist dbusmenu contains a hidden menuitem.
(LP: #759174)
- Opening quicklist with launcher keynav returns focus to previous window
(LP: #750781)
- window's title does not fade in the right position (LP: #722178)
* debian/control:
- depends on compiz for some people upgrading (LP: #773253)
* debian/
- remove, upstream now
-- Didier Roche <email address hidden> Thu, 26 May 2011 17:41:14 +0200