Skip to content

Wine-program disappears after startup #4011

@Knaldgas

Description

@Knaldgas

Running awesome 4.3 on Debian 13.

I have a Windows program running under wine.
If I close this program while it is shown on external monitor, then the program disappears when started again without external monitor.
If I close this program while it is shown on internal monitor, even when an external monitor is active, then the program shows fine when started again without external monitor.
In both cases the Splash screen is shown fine, and the program does show itself for a split-second before disappearing in the latter case.
The programs taskbar also disappears when the program disappears (and is nowhere to be found).

When the program has disappeared, I can then enable the external monitor, and the program shows up again, just like that.

I have tried maximized, floating and fullscreen - It doesn't seem to matter.

When the program has disappeared, xwininfo returns:
0x1a00004 "No current project - Enterprise Architect": ("ea.exe" "ea.exe") 1920x1092+0+-1200 +0+-1200
"+0+-1200": so it is placed outside the internal monitor.

Running something like the following from rc.lua:

function ()
   local EA = function (c)
   return awful.rules.match(c, {class = "ea.exe"})
end
for c in awful.client.iterate(EA) do
   --  finds the program fine when on-screen.
   --  finds nothing when the program is off-screen!?
end

I'm a bit puzzled that awful.client.iterate cannot find the client, even though the client appears after attaching an external monitor (and then found by awful.client.iterate)!?

How can I fix this? - I cannot rely on having an external monitor around all the time :)

~Per

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions