Restoring minimized windows causes window border to be behind the title bar

Bug #883430 reported by Dominik Menke
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Unity
Invalid
Low
Unassigned
unity (Ubuntu)
Invalid
Low
Unassigned

Bug Description

When I minimize a maximized window and later decide to restore this window, the top border of that window appears behind the »control bar« (or whatever you call it, see attached pictures).

The annoying part: the window's contents seem to be on the right place, but they are drawn by $control_bar_height pixels shifted to the top (where $control_bar_height is the height of, you guessed, the »control bar« ;-)).

When I Alt-Tab to another window and Alt-Tab back, the control border appears. Occasionally, I have seen this behavior in Ubuntu Natty, too.

This bug is reproducible with any application. Screenshots:

1. no application is started: https://assets.dmke.org/1-none-started.png (actually, the amount of running applications is irrelevant)
2. starting gnome-terminal: https://assets.dmke.org/2-terminal-started.png
3. maximizing the window: https://assets.dmke.org/3-terminal-maximized.png
4. minimizing the window: https://assets.dmke.org/4-terminal-minimized.png
5. restoring the window: https://assets.dmke.org/5-terminal-restored.png

In the last screen, note the bottom area, where the background shines through. By clicking there, the terminal window will not lose focus.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: unity 4.24.0-0ubuntu2b1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 280.13 Wed Jul 27 16:53:56 PDT 2011
 GCC version: gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
.tmp.unity.support.test.0:

ApportVersion: 1.23-0ubuntu3
Architecture: amd64
CompizPlugins: [core,bailer,detection,composite,opengl,compiztoolbox,decor,mousepoll,workarounds,imgpng,move,snap,grid,vpswitch,scale,wall,gnomecompat,resize,resizeinfo,regex,place,expo,ezoom,session,staticswitcher,unityshell]
CompositorRunning: compiz
Date: Sat Oct 29 12:50:45 2011
DistUpgraded: Log time: 2011-10-14 00:21:39.630216
DistroCodename: oneiric
DistroVariant: ubuntu
DkmsStatus: nvidia-current, 280.13, 3.0.0-12-generic, x86_64: installed
GraphicsCard:
 nVidia Corporation G98 [GeForce 9300M GS] [10de:06e9] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Lenovo Device [17aa:2107]
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110426)
JockeyStatus:
 xorg:nvidia_173 - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
 xorg:nvidia_173_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
 xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Enabled, In use)
 xorg:nvidia_current_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
MachineType: LENOVO 2746AQG
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-12-generic root=UUID=27e1e88e-28f9-41ac-a8ec-2517498a9b82 ro quiet splash vt.handoff=7
SourcePackage: unity
UpgradeStatus: Upgraded to oneiric on 2011-10-13 (15 days ago)
XorgConf:
 Section "Device"
  Identifier "Default Device"
  Option "NoLogo" "True"
 EndSection
dmi.bios.date: 05/29/2009
dmi.bios.vendor: LENOVO
dmi.bios.version: 6AET58WW
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: 2746AQG
dmi.board.vendor: LENOVO
dmi.board.version: LENOVO 6AET58WW
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: LENOVO 6AET58WW
dmi.modalias: dmi:bvnLENOVO:bvr6AET58WW:bd05/29/2009:svnLENOVO:pn2746AQG:pvrThinkPadSL500:rvnLENOVO:rn2746AQG:rvrLENOVO6AET58WW:cvnLENOVO:ct10:cvrLENOVO6AET58WW:
dmi.product.name: 2746AQG
dmi.product.version: ThinkPad SL500
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.6+bzr20110929-0ubuntu5
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.26-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 7.11-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 7.11-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg: xserver-xorg 1:7.6+7ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.6.0-1ubuntu13
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:6.14.99~git20110811.g93fc084-0ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.15.901-1ubuntu2
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:0.0.16+git20110411+8378443-1

Revision history for this message
Dominik Menke (dmke) wrote :
Revision history for this message
Omer Akram (om26er) wrote :

you linked screenshots cannot be opened. Can you please update the links of the screenshot or better attach your screenshots to this bug report.

Changed in unity (Ubuntu):
status: New → Incomplete
Changed in unity:
status: New → Incomplete
importance: Undecided → Low
Changed in unity (Ubuntu):
importance: Undecided → Low
Revision history for this message
Dominik Menke (dmke) wrote :

There was a server glitch, the linked images are accessible again.

Anyhow, I attached them, too.

Revision history for this message
Omer Akram (om26er) wrote :

thanks for the bug report. Can you open a terminal and run 'unity --reset' to restore all settings, after that see if the problem happens still. Its was a bug in compiz which i've not seen for a few weeks :/

Revision history for this message
Dominik Menke (dmke) wrote :

Actually, that seems to have an effect...

Thanks!

Revision history for this message
Omer Akram (om26er) wrote :

closing the bug then. It could be a configuration problem on your side/

Changed in unity:
status: Incomplete → Invalid
Changed in unity (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Marin Bareta (marin-bareta) wrote :

I had the same problem, and unity --reset solved it. Thanks!

Revision history for this message
sergio (serge-simon) wrote :
Download full text (4.0 KiB)

I still have the exact same problem on Ubuntu 11.10 Oneiric.
And launching "unity --reset" doesn't help.
The problem is annoying and reproductible.
I open (let's say) a terminal, a firefox, an instance of Eclipse.
When they're all maximized, everything works fine.
If i minimize a window, then i alt-tab immediately (or later) to this application, the maximized position is not well restored : it's just like the window is restored to the the 0x0 coordinate instead of just below the "unity main control bar".

% unity --reset

Checking if settings need to be migrated ...no
Checking if internal files need to be migrated ...no
Backend : gconf
Integration : true
Profile : default
Adding plugins
Skipping upgrade com.canonical.unity.unity.01.upgrade
Skipping upgrade com.canonical.unity.unity.02.upgrade
Initializing core options...done
Initializing bailer options...done
Initializing detection options...done
Initializing composite options...done
Initializing opengl options...done
Initializing decor options...done
Initializing gnomecompat options...done
Initializing resize options...done
Initializing snap options...done
Initializing mousepoll options...done
Initializing place options...done
Initializing commands options...done
Initializing grid options...done
Initializing wall options...done
Initializing move options...done
Initializing vpswitch options...done
Initializing session options...done
Initializing animation options...done
Initializing workarounds options...done
compiz (expo) - Warn: failed to bind image to texture
Initializing expo options...done
Initializing ezoom options...done
Initializing staticswitcher options...done
Initializing fade options...done
Initializing scale options...done

Screen geometry changed:
   0x0x1920x1080

unity-panel-service: aucun processus trouvé
Initializing unityshell options...done
DEBUG 2012-01-09 12:55:10 glib <unknown>:0 Setting to primary screen rect: x=0 y=0 w=1920 h=1080
Setting Update "preview_scale"
Setting Update "speed"
Setting Update "timestep"
Setting Update "popup_delay"
Setting Update "icon_only"
Setting Update "highlight_mode"
Setting Update "highlight_rect_hidden"
Setting Update "alt_tab_forward"
Setting Update "alt_tab_prev"
Setting Update "alt_tab_right"
Setting Update "alt_tab_left"
Setting Update "alt_tab_detail_start"
Setting Update "alt_tab_detail_stop"
Setting Update "show_minimized_windows"
WARN 2012-01-09 12:56:09 unity.glib.dbusproxy GLibDBusProxy.cpp:255 Cannot call method InfoRequest proxy /com/canonical/unity/lens/applications does not exist
WARN 2012-01-09 12:56:09 unity.glib.dbusproxy GLibDBusProxy.cpp:255 Cannot call method SetActive proxy /com/canonical/unity/lens/applications does not exist
WARN 2012-01-09 12:56:09 unity.glib.dbusproxy GLibDBusProxy.cpp:255 Cannot call method InfoRequest proxy /com/canonical/unity/lens/commands does not exist
WARN 2012-01-09 12:56:09 unity.glib.dbusproxy GLibDBusProxy.cpp:255 Cannot call method SetActive proxy /com/canonical/unity/lens/commands does not exist
WARN 2012-01-09 12:56:09 unity.glib.dbusproxy GLibDBusProxy.cpp:255 Cannot call method InfoRequest proxy /com/canonical/unity/lens/files does not...

Read more...

Revision history for this message
klm (klm-wpi) wrote :

i have the same problem, unity reset doesn't help

Revision history for this message
klm (klm-wpi) wrote :

if unity (reset) hangs up you have to log in gnome classic and rename/remove:
~/.compiz
~/.compiz-1
~/.config/compiz-1
~/.gconf/apps/compiz-1
~/.gconf/apps/compizconfig-1

it works for me

To post a comment you must log in.