Bug 161861

Summary: Minimize button is missing after toggling SKIP_TASKBAR
Product: [Plasma] kwin Reporter: leiz
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description leiz 2008-05-09 20:47:19 UTC
Version:            (using KDE 3.5.9)
Installed from:    Ubuntu Packages
OS:                Linux

Hi,

I filed this as Wine bug 12605. [1]

I have a simple Windows program that toggles to full screen and back. [2] When I run this with a recent version of Wine, i.e. Wine 0.9.61, toggling full screen and back results in a missing minimize button in KDE 3.5.x. I've tried with KDE 3.5.2 and 3.5.9. With KDE 4.0, it works fine.

The code that sets the WM states in Wine are in dlls/winex11.drv/window.c in update_net_wm_states(). If one enable WINEDEBUG=+x11drv, part of the output is as follows:

- click the button to go full screen
setting wm state 0 for window 0x10024/3c00005 to 1 prev 0
setting wm state 2 for window 0x10024/3c00005 to 0 prev 1
setting wm state 3 for window 0x10024/3c00005 to 1 prev 0
setting wm state 4 for window 0x10024/3c00005 to 1 prev 0

- click the button to return from full screen
setting wm state 0 for window 0x10024/3c00005 to 0 prev 1
setting wm state 2 for window 0x10024/3c00005 to 1 prev 0
setting wm state 3 for window 0x10024/3c00005 to 0 prev 1
setting wm state 4 for window 0x10024/3c00005 to 0 prev 1

where the wm states are:
0: XATOM__NET_WM_STATE_FULLSCREEN,
1: XATOM__NET_WM_STATE_ABOVE,
2: XATOM__NET_WM_STATE_MAXIMIZED_VERT,
3: XATOM__NET_WM_STATE_SKIP_PAGER,
4: XATOM__NET_WM_STATE_SKIP_TASKBAR

I experimented with the code and it looks as though toggling SKIP_TASKBAR is the reason for the minimizing button going missing.

[1] http://bugs.winehq.org/show_bug.cgi?id=12605
[2] http://bugs.winehq.org/attachment.cgi?id=12220
Comment 1 Martin Flöser 2009-12-15 23:30:02 UTC
As it works with the KDE 4 version and we won't fix bugs of KDE 3 anymore we can close this issue.

Sorry that nobody ever commented on it.