Discussion:
[SDL] Question about SDL+OpenGL window behavior - Linux
Ed Phillips
2016-11-02 19:10:06 UTC
Permalink
Hello,

Is it normal behavior for an SDL window to follow along (i.e. move to the
new workspace) when you switch between workspaces? This is not normal
behavior for X windows unless you set the window manager "sticky" or
"always on visible workspace" hint/option for the window.

Thanks,

Ed
Ed Phillips
2016-11-02 19:44:24 UTC
Permalink
Post by Ed Phillips
Hello,
Is it normal behavior for an SDL window to follow along (i.e. move to the new
workspace) when you switch between workspaces? This is not normal behavior
for X windows unless you set the window manager "sticky" or "always on
visible workspace" hint/option for the window.
Thanks,
Ed
Okay... after a quick look at 2.0.5 latest sources, I don't see any
mention of _NET_WM_STATE_STICKY, so that tells me something else might be
at work here that is causing the SDL to move the window along relative to
the workspace x/y offset. (IIRC, workspaces in X11 are really just
geometry x/y offsets into a big "virtual desktop" area).

Anyone seen this "sticky" behavior for SDL windows on Linux/X?

By the way, the same thing happens for fullscreen windows in multi-monitor
setups when you have your SDL app running fullscreen on one of the
monitors... switching workspaces makes the fullscreen SDL app switch to
the current workspace after every switch.

I know I found at least one way to use keyboard shortcuts with the window
manager which would cause the SDL window to get "left behind" on the
original workspace (i.e. not moving itself to the new workspace) but I
don't recall at the moment what I did to make this happen.

Ed

Continue reading on narkive:
Search results for '[SDL] Question about SDL+OpenGL window behavior - Linux' (Questions and Answers)
12
replies
Is it true you Mac OS aren't good for programming?
started 2016-01-26 18:17:50 UTC
programming & design
Loading...