diff options
author | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-08-16 17:25:20 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graeme@mastermaths.co.za> | 2012-08-16 17:25:20 +0100 |
commit | e70a78e9b09eecd9bbc80516adc352fc7cd169be (patch) | |
tree | af4001289b3bd18e425e7c40584a173d019b7749 /src/corelib/x11 | |
parent | 3723fbde4f635fdc143928c328c80b9c1355d1c3 (diff) | |
download | fpGUI-e70a78e9b09eecd9bbc80516adc352fc7cd169be.tar.xz |
x11: Improved to code's intention and meaning.
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; |