gtk: remove unneeded $ifdef HasX

git-svn-id: trunk@12195 -
This commit is contained in:
paul 2007-09-27 07:54:52 +00:00
parent 0c5e6d447a
commit 544849a53e
2 changed files with 3 additions and 7 deletions

View File

@ -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);

View File

@ -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