mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 16:22:46 +02:00
fixed WMSize flags for TCustomForm.OnWindowStateChange for gtk2
git-svn-id: trunk@8068 -
This commit is contained in:
parent
7382c71808
commit
2e474b10bb
@ -953,10 +953,10 @@ begin
|
||||
GtkHeight:=Widget^.Allocation.Height;
|
||||
if GtkHeight<0 then GtkHeight:=0;
|
||||
//debugln('GTKWindowStateEventCB ',DbgSName(TObject(Data)),' ',dbgs(state^.new_window_state));
|
||||
if (GDK_WINDOW_STATE_MAXIMIZED and state^.new_window_state)>0 then
|
||||
SizeMsg.SizeType:=SIZEFULLSCREEN
|
||||
else if (GDK_WINDOW_STATE_ICONIFIED and state^.new_window_state)>0 then
|
||||
if (GDK_WINDOW_STATE_ICONIFIED and state^.new_window_state)>0 then
|
||||
SizeMsg.SizeType:=SIZEICONIC
|
||||
else if (GDK_WINDOW_STATE_MAXIMIZED and state^.new_window_state)>0 then
|
||||
SizeMsg.SizeType:=SIZEFULLSCREEN
|
||||
else
|
||||
SizeMsg.SizeType:=SIZENORMAL;
|
||||
with SizeMsg do
|
||||
|
Loading…
Reference in New Issue
Block a user