Remove bogus code that tried to do what the X11 backend does in its

2004-09-15  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
	Remove bogus code that tried to do what the X11 backend does in
	its version of this function. There are no "frame windows" (for
	toplevel window decoration) on Windows. The desktop ("root")
	window is not the parent of a toplevel window. (#152481)
This commit is contained in:
Tor Lillqvist 2004-09-15 18:37:45 +00:00 committed by Tor Lillqvist
parent 38a257bce2
commit a96d0b38c6
5 changed files with 32 additions and 8 deletions

View File

@ -1,3 +1,11 @@
2004-09-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
Remove bogus code that tried to do what the X11 backend does in
its version of this function. There are no "frame windows" (for
toplevel window decoration) on Windows. The desktop ("root")
window is not the parent of a toplevel window. (#152481)
2004-09-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Update.

View File

@ -1,3 +1,11 @@
2004-09-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
Remove bogus code that tried to do what the X11 backend does in
its version of this function. There are no "frame windows" (for
toplevel window decoration) on Windows. The desktop ("root")
window is not the parent of a toplevel window. (#152481)
2004-09-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Update.

View File

@ -1,3 +1,11 @@
2004-09-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
Remove bogus code that tried to do what the X11 backend does in
its version of this function. There are no "frame windows" (for
toplevel window decoration) on Windows. The desktop ("root")
window is not the parent of a toplevel window. (#152481)
2004-09-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Update.

View File

@ -1,3 +1,11 @@
2004-09-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_get_frame_extents):
Remove bogus code that tried to do what the X11 backend does in
its version of this function. There are no "frame windows" (for
toplevel window decoration) on Windows. The desktop ("root")
window is not the parent of a toplevel window. (#152481)
2004-09-15 Matthias Clasen <mclasen@redhat.com>
* NEWS: Update.

View File

@ -2021,14 +2021,6 @@ gdk_window_get_frame_extents (GdkWindow *window,
private = (GdkWindowObject*) private->parent;
hwnd = GDK_WINDOW_HWND (window);
/* find the frame window */
while (HWND_DESKTOP != GetParent (hwnd))
{
hwnd = GetParent (hwnd);
g_return_if_fail (NULL != hwnd);
}
API_CALL (GetWindowRect, (hwnd, &r));
rect->x = r.left + _gdk_offset_x;