diff options
Diffstat (limited to 'src/corelib/x11')
-rw-r--r-- | src/corelib/x11/fpg_netlayer_x11.pas | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/x11/fpg_netlayer_x11.pas b/src/corelib/x11/fpg_netlayer_x11.pas index 555133df..b328378d 100644 --- a/src/corelib/x11/fpg_netlayer_x11.pas +++ b/src/corelib/x11/fpg_netlayer_x11.pas @@ -442,7 +442,10 @@ begin Msg.message_type := FNetAtoms[naWM_STATE]; Msg.window := AWindow; - Msg.data.l[0] := Ord(AValue); + if AValue then + Msg.data.l[0] := _NET_WM_STATE_ADD + else + Msg.data.l[0] := _NET_WM_STATE_REMOVE; Msg.data.l[1] := FNetAtoms[naWM_STATE_FULLSCREEN]; Msg.data.l[3] := _NET_SOURCE_APPLICATION; |