Bug 161861 - Minimize button is missing after toggling SKIP_TASKBAR
Summary: Minimize button is missing after toggling SKIP_TASKBAR
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-09 20:47 UTC by leiz
Modified: 2009-12-15 23:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.