mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[client] x11/i3: fix fullscreen at launch via parameter/config
This commit is contained in:
parent
20972cfd9b
commit
7f515c54b3
@ -699,7 +699,7 @@ static bool x11Init(const LG_DSInitParams params)
|
|||||||
XMoveWindow(x11.display, x11.window, params.x, params.y);
|
XMoveWindow(x11.display, x11.window, params.x, params.y);
|
||||||
|
|
||||||
if (params.fullscreen)
|
if (params.fullscreen)
|
||||||
x11SetFullscreen(true);
|
x11.doFullscreenOnExpose = true;
|
||||||
|
|
||||||
XSetLocaleModifiers(""); // Load XMODIFIERS
|
XSetLocaleModifiers(""); // Load XMODIFIERS
|
||||||
x11.xim = XOpenIM(x11.display, 0, 0, 0);
|
x11.xim = XOpenIM(x11.display, 0, 0, 0);
|
||||||
@ -946,6 +946,11 @@ static int x11EventThread(void * unused)
|
|||||||
{
|
{
|
||||||
atomic_store(&x11.lastWMEvent, microtime());
|
atomic_store(&x11.lastWMEvent, microtime());
|
||||||
x11.invalidateAll = true;
|
x11.invalidateAll = true;
|
||||||
|
if (x11.doFullscreenOnExpose)
|
||||||
|
{
|
||||||
|
x11SetFullscreen(true);
|
||||||
|
x11.doFullscreenOnExpose = false;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ struct X11DSState
|
|||||||
|
|
||||||
_Atomic(uint64_t) lastWMEvent;
|
_Atomic(uint64_t) lastWMEvent;
|
||||||
bool invalidateAll;
|
bool invalidateAll;
|
||||||
|
bool doFullscreenOnExpose;
|
||||||
|
|
||||||
int xpresentOp;
|
int xpresentOp;
|
||||||
bool jitRender;
|
bool jitRender;
|
||||||
|
Loading…
Reference in New Issue
Block a user