mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-10 10:41:15 +02:00
gtk: remove unneeded $ifdef HasX
git-svn-id: trunk@12195 -
This commit is contained in:
parent
0c5e6d447a
commit
544849a53e
@ -536,12 +536,7 @@ begin
|
||||
{$IFDEF Gtk1}
|
||||
exit;
|
||||
{$ELSE}
|
||||
{$IFDEF HasX}
|
||||
Drawable := gdk_screen_get_root_window(gdk_screen_get_default);
|
||||
{$ELSE}
|
||||
{$note: todo implement}
|
||||
exit;
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
end;
|
||||
Result := RawImage_FromDrawable(ARawImage, Drawable, nil, R);
|
||||
|
@ -7150,9 +7150,10 @@ begin
|
||||
GdkWindow:=GetControlWindow(aWidget);
|
||||
if (GdkWindow<>nil) and (GTK_WIDGET_MAPPED(aWidget)) then begin
|
||||
// window is mapped = window manager has put the window somewhere
|
||||
// under windows GtkLeft and GtkTop equal to -32000 for some reason
|
||||
gdk_window_get_root_origin(GdkWindow, @GtkLeft, @GtkTop);
|
||||
Left:=GtkLeft;
|
||||
Top:=GtkTop;
|
||||
Left := GtkLeft;
|
||||
Top := GtkTop;
|
||||
end else begin
|
||||
// the gtk has not yet put the window to the final position
|
||||
// => the gtk/gdk position is not reliable
|
||||
|
Loading…
Reference in New Issue
Block a user