summaryrefslogtreecommitdiff
path: root/src/corelib/x11
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-08-16 17:25:20 +0100
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-08-16 17:25:20 +0100
commite70a78e9b09eecd9bbc80516adc352fc7cd169be (patch)
treeaf4001289b3bd18e425e7c40584a173d019b7749 /src/corelib/x11
parent3723fbde4f635fdc143928c328c80b9c1355d1c3 (diff)
downloadfpGUI-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.pas5
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;