Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost Window with BGB on Wine #317

Open
Near1980 opened this issue Nov 26, 2018 · 4 comments
Open

Ghost Window with BGB on Wine #317

Near1980 opened this issue Nov 26, 2018 · 4 comments

Comments

@Near1980
Copy link

This seems to be partly an issue of Wine/BGB but given IceWM 1.3.8 and Xfce4 appear to handle it better than the latest git version I'm reporting it here.

System: Debian 8 x86.
BGB is a Game Boy emulator/debugger : http://bgb.bircd.org/

To reproduce:
get Wine and BGB
Wine option "Let the window manager control / decorate the windows" should be (obviously) set.
Run BGB.

  • Right click > Options
    • Graphics > Output > set to Directdraw
    • Misc > Enable show framerate
  • Rigth click > Load ROM > Load the bgbtest.gb ROM
  • Minimize the window and restore it

Two windows should appear at the taskbar, one of them blinking. First of them appears to be a BGB hidden window and the other one the actually shown window.
By fiddling around with options menu and opening/closing the debugger (ESC Key) it will eventually disappear until it gets minimized and restored again. When it disappears, it can be found at the Window List menu.

Under IceWM 1.3.8 such window is always hidden from the taskbar. Same applies for Xfce4.

Overridden config:

MenuMouseTracking=1 # 0/1
MenuActivateDelay=10 # [0-5000]
SubmenuMenuActivateDelay=10 # [0-5000]
QuickSwitchSmallWindow=1 # 0/1
TaskBarAtTop=1 # 0/1
TaskBarShowMailboxStatus=0 # 0/1
PagerShowPreview=1 # 0/1
ShowHelp=0 # 0/1
MailCheckDelay=86400 # [0-86400]
ShutdownCommand="poweroff"
RebootCommand="reboot"
CPUStatusCommand="x-terminal-emulator -name htop -title Process\ Status -e htop"
NetStatusCommand="x-terminal-emulator -name 'ss' -title 'Socket Statistics' -hold -e sh -c 'which ss > /dev/null && watch -t ss -putswl || netstat -c'"
TerminalCommand="x-terminal-emulator"
NetworkStatusDevice="eth0 wlan1"
SuspendCommand=""
LimitPosition=0 # Wicd Fix
KeySysWinMenu="" # Quake
@gijsbers
Copy link
Collaborator

1.3.8 is no longer maintained as it is from 2013 and released by others. Since then there were a number of major releases. You can look at #304 for pointers or follow the instructions on the IceWM website on how to install the current software, which is stable and recommended.

@Near1980
Copy link
Author

I'm sorry I didn't explain it clearly enough.
I'm running IceWM 1.4.2.1675. This is the version where this bug is happening.

My system offers IceWM 1.3.8 from the package manager. That's the version I have updated from and where this bug didn't happen.

@gijsbers
Copy link
Collaborator

Ah I see now. Can you try and see if xprop and xwininfo on that window show anything? Ah bgb.exe works. xwininfo -tree -root shows 2 windows. One has size 1x1. xprop on the other bigger window says that the 1x1 window is the group leader. The 1x1 WM hints says the program specified location is -4,7, but the actual location is 0,7. So somehow the window wanted to be offscreen but is onscreen. That might explain its button on the taskbar.

@Near1980
Copy link
Author

Output of xwininfo -tree -root :
https://pastebin.com/fbLgQrBJ (Github it's not letting me upload files)
Output of xprop on the shown window:

$ xprop
_ICEWM_TRAY(CARDINAL) = 0
_WIN_LAYER(CARDINAL) = 4
_NET_WM_DESKTOP(CARDINAL) = 0
_WIN_WORKSPACE(CARDINAL) = 0
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_WIN_STATE(CARDINAL) = 0, 1023
_NET_FRAME_EXTENTS(CARDINAL) = 3, 3, 22, 3
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _NET_WM_ACTION_STICK, _NET_WM_ACTION_CHANGE_DESKTOP
_NET_WM_VISIBLE_NAME(UTF8_STRING) = "bgb - 60/60"
_NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = "bgb - 60/60"
_NET_WM_STATE(ATOM) = _NET_WM_STATE_SKIP_TASKBAR
_NET_WM_ICON(CARDINAL) = 	Icon (32 x 32):
[...]
_NET_WM_NAME(UTF8_STRING) = "bgb - 60/60"
WM_ICON_NAME(STRING) = "bgb - 60/60"
WM_NAME(STRING) = "bgb - 60/60"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: False
		Initial state is Normal State.
		bitmap id # to use for icon: 0x1e0009c
		bitmap id # of mask for icon: 0x1e0009e
		window id # of group leader: 0x2000001
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
WM_TRANSIENT_FOR(WINDOW): window id # 0x2000001
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x2000009, 0x7cbab108
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified location: 487, 221
		window gravity: Static
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1e00050
XdndAware(ATOM) = ATOM
_NET_WM_PID(CARDINAL) = 2996
WM_LOCALE_NAME(STRING) = "es_ES.UTF-8"
WM_CLIENT_MACHINE(STRING) = "Debian"
WM_CLASS(STRING) = "bgb.exe", "Wine"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING, WM_TAKE_FOCUS

Output of xprop on the "asking for attention" window:

$ xprop -id 0x2000009
_ICEWM_TRAY(CARDINAL) = 0
_WIN_LAYER(CARDINAL) = 4
_NET_WM_DESKTOP(CARDINAL) = 0
_WIN_WORKSPACE(CARDINAL) = 0
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_WIN_STATE(CARDINAL) = 0, 1023
_NET_FRAME_EXTENTS(CARDINAL) = 3, 3, 22, 3
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _NET_WM_ACTION_STICK, _NET_WM_ACTION_CHANGE_DESKTOP
_NET_WM_VISIBLE_NAME(UTF8_STRING) = "bgb - 60/60"
_NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = "bgb - 60/60"
_NET_WM_STATE(ATOM) = _NET_WM_STATE_SKIP_TASKBAR, _NET_WM_STATE_DEMANDS_ATTENTION
_NET_WM_ICON(CARDINAL) = 	Icon (32 x 32):
[...]
_NET_WM_NAME(UTF8_STRING) = "bgb - 60/60"
WM_ICON_NAME(STRING) = "bgb - 60/60"
WM_NAME(STRING) = "bgb - 60/60"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: False
		Initial state is Normal State.
		bitmap id # to use for icon: 0x1e0009c
		bitmap id # of mask for icon: 0x1e0009e
		window id # of group leader: 0x2000001
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
WM_TRANSIENT_FOR(WINDOW): window id # 0x2000001
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x2000009, 0x7cbab108
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		program specified location: 613, 223
		window gravity: Static
_NET_WM_USER_TIME_WINDOW(WINDOW): window id # 0x1e00050
XdndAware(ATOM) = ATOM
_NET_WM_PID(CARDINAL) = 2996
WM_LOCALE_NAME(STRING) = "es_ES.UTF-8"
WM_CLIENT_MACHINE(STRING) = "Debian"
WM_CLASS(STRING) = "bgb.exe", "Wine"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING, WM_TAKE_FOCUS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants