gtk2/gdk
Tor Lillqvist 09f777e5ea Fix for #108007, #112402, #117042: There was confusion in gdk/win32 at
2003-07-29  Tor Lillqvist  <tml@iki.fi>

	Fix for #108007, #112402, #117042: There was confusion in
	gdk/win32 at various places whether a window position refers to
	the decoration position or the client area position. Also whether
	window size includes decorations or not.

	The correct interpretation apparently is that in GDK (like in
	X11), a top-level window position means the decoration's position,
	but size means the window's inner size (client area size). In the
	Win32 API, the window size usually includes the decorations,
	though.

	* gdk/win32/gdkevents-win32.c (decode_key_lparam): Move inside
	#ifdef G_ENABLE_DEBUG.
	(handle_configure_event): New function, generates GDK_CONFIGURE
	events from WM_SIZE and WM_MOVE messages. Even if no event is
	generated because of the event mask, still set the private
	position and size fields. Calculate position and size correctly.
	(gdk_event_translate): Call handle_configure_event().

	* gdk/win32/gdkgeometry-win32.c: Cosmetics.

	* gdk/win32/gdkwindow-win32.c: Use GDI_CALL() and API_CALL()
	macros. Cosmetic debugging output changes.
	(SafeAdjustWindowRectEx): Remove. If an application wants to
	locate a window outside of the screen, it's not GDK's business to
	prevent it. And anyway, with multiple monitors, negative
	coordinates are perfectly normal.
	(gdk_window_new): Adjust the window size for decorations after
	_gdk_window_init_position() has done its job. (But the big window
	code currently is presumably broken on Win32 anyway.)
	(gdk_window_move): The position passed in is supposed to be that
	of the window border, so don't need to adjust for decorations.
	(gdk_window_resize, gdk_window_move_resize): Simplify somewhat.
2003-07-29 23:35:40 +00:00
..
linux-fb Use asynchronously _gdk_x11_set_input_focus_safe to avoid having to trap 2003-07-05 01:54:05 +00:00
win32 Fix for #108007, #112402, #117042: There was confusion in gdk/win32 at 2003-07-29 23:35:40 +00:00
x11 gdk/win32/gdkprivate-win32.h New flags _gdk_input_locale_is_ime and 2003-07-26 01:54:59 +00:00
.cvsignore dear cvs, please SHUT UP love, -kris 2003-07-09 17:57:51 +00:00
COPYING [ Merges from gtk-1-2 ] 1999-09-28 20:19:13 +00:00
gdk.c Document 2.2 API additions. 2002-11-28 00:33:17 +00:00
gdk.def new file to build it all ... added to EXTRA_DIST 2003-07-20 15:50:14 +00:00
gdk.h Deprecate gtk_paned_computed_position(). (#97077) 2003-01-31 00:08:35 +00:00
gdkcolor.c Add "Since" information. 2002-12-06 00:10:20 +00:00
gdkcolor.h add -DGDK_DISABLE_DEPRECATED 2002-11-17 22:04:03 +00:00
gdkconfig.h.win32 Massive changes. Too many to list here, but I'll try a summary: 2002-02-17 00:25:05 +00:00
gdkcursor.c Renames: 2002-06-20 23:59:27 +00:00
gdkcursor.h Check for Xcursor. 2003-06-30 22:30:54 +00:00
gdkdisplay.c Merge from stable. 2003-07-09 18:00:21 +00:00
gdkdisplay.h Use asynchronously _gdk_x11_set_input_focus_safe to avoid having to trap 2003-07-05 01:54:05 +00:00
gdkdisplaymanager.c Document 2.2 API additions. 2002-11-28 00:33:17 +00:00
gdkdisplaymanager.h Renames: 2002-06-20 23:59:27 +00:00
gdkdnd.c Fix doc comment. 2002-10-25 00:01:15 +00:00
gdkdnd.h docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml 2002-11-08 19:41:50 +00:00
gdkdraw.c Document 2.2 API additions. 2002-11-28 00:33:17 +00:00
gdkdrawable.h add -DGDK_DISABLE_DEPRECATED 2002-11-17 22:04:03 +00:00
gdkevents.c Fix for the case when gdk_event_copy() is called on a non-allocated event. 2003-04-18 21:24:43 +00:00
gdkevents.h Add a 'type' parameter, make public. 2002-10-03 20:53:30 +00:00
gdkfont.c Add "Since" information. 2002-12-06 00:10:20 +00:00
gdkfont.h add -DGDK_DISABLE_DEPRECATED 2002-11-17 22:04:03 +00:00
gdkgc.c add -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile 2002-09-25 07:23:55 +00:00
gdkgc.h Start of integration of Erwann Chenede's multihead work from the 2002-04-25 22:29:14 +00:00
gdkglobals.c Add a --screen option for setting the default screen. (Based on a patch 2002-10-31 21:12:23 +00:00
gdki18n.h Deprecate GtkPreviewType, GtkSignalRunType, GtkSideType, 2002-01-30 02:01:10 +00:00
gdkimage.c add -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile 2002-09-25 07:23:55 +00:00
gdkimage.h Fix docs. (#66383) 2001-12-06 21:38:12 +00:00
gdkinput.h docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml 2002-11-08 19:41:50 +00:00
gdkinternals.h Add a --screen option for setting the default screen. (Based on a patch 2002-10-31 21:12:23 +00:00
gdkintl.h Add a singleton object that we can use to get notification when displays 2002-06-20 23:29:19 +00:00
gdkkeynames.c Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis inconsistency and 2003-05-14 21:46:59 +00:00
gdkkeys.c Associate the keys_changed virtual function with the keys_changed signal. 2003-02-19 19:32:10 +00:00
gdkkeys.h Add a keys_changed signal emitted when the keymap changes. (#72148) 2002-09-23 21:35:00 +00:00
gdkkeysyms.h Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis inconsistency and 2003-05-14 21:46:59 +00:00
gdkkeyuni.c Patch from Vasilis Vasaitis to fix Greek_IOTAdi[a]eresis inconsistency and 2003-05-14 21:46:59 +00:00
gdkmarshalers.list New demo for window migration between different displays and screens. 2002-08-01 23:43:13 +00:00
gdkpango.c When drawing underlines, join up adjacent runs where possible, so we don't 2003-06-04 23:47:23 +00:00
gdkpango.h Start of integration of Erwann Chenede's multihead work from the 2002-04-25 22:29:14 +00:00
gdkpixbuf-drawable.c swap G and B. Fixes (#114669) 2003-06-08 16:15:16 +00:00
gdkpixbuf-render.c Deprecate. (#60582) 2003-01-31 00:37:38 +00:00
gdkpixbuf.h Deprecate. (#60582) 2003-01-31 00:37:38 +00:00
gdkpixmap.c update to allow a GdkDrawable instead of a GdkWindow. 2002-12-09 23:34:49 +00:00
gdkpixmap.h update to allow a GdkDrawable instead of a GdkWindow. 2002-12-09 23:34:49 +00:00
gdkpoly-generic.h Merge no-flicker branch into HEAD 2000-03-28 01:24:44 +00:00
gdkpolyreg-generic.c Fix some reported (but not significant) UMR's from purify. (#73160, Morten 2002-03-01 22:01:51 +00:00
gdkprivate.h Make gdkx.h the only installed header from gdk/x11. All structures in 2001-09-07 21:50:20 +00:00
gdkproperty.h Start of integration of Erwann Chenede's multihead work from the 2002-04-25 22:29:14 +00:00
gdkrectangle.c Update to use the new g_boxed_type_register_static API. 2001-09-10 16:54:07 +00:00
gdkregion-generic.c ----:---F1 gdkregion-generic.c (CGTK CVS:1.11 Abbrev)--L1696--96%---------Fri Aug 2 16:38:34 2002 Owen Taylor <otaylor@redhat.com> 2002-08-02 20:39:40 +00:00
gdkregion-generic.h (Part 2) Remove gdk_*_lookup() defines, since they are defined by the 2000-07-24 16:19:00 +00:00
gdkregion.h use _gdk_region_get_xrectangles() 2001-03-02 20:02:17 +00:00
gdkrgb.c added a missing cast. 2003-06-02 14:14:41 +00:00
gdkrgb.h Start of integration of Erwann Chenede's multihead work from the 2002-04-25 22:29:14 +00:00
gdkscreen.c gdk/gdkscreen.c (gdk_screen_get_monitor_at_point) Provide a useful 2002-12-14 05:27:23 +00:00
gdkscreen.h Add a --screen option for setting the default screen. (Based on a patch 2002-10-31 21:12:23 +00:00
gdkselection.c Start implementing display/screen closing scheme; keep a flag for whether 2002-08-01 15:28:40 +00:00
gdkselection.h docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml 2002-11-08 19:41:50 +00:00
gdktypes.h Start of integration of Erwann Chenede's multihead work from the 2002-04-25 22:29:14 +00:00
gdkvisual.c Renames: 2002-06-20 23:59:27 +00:00
gdkvisual.h Changes multihead reorganizing code for win32 support, mostly from a patch 2002-06-06 00:26:42 +00:00
gdkwindow.c Merge from stable. 2003-07-09 18:00:21 +00:00
gdkwindow.h add -DGDK_DISABLE_DEPRECATED 2002-11-17 22:04:03 +00:00
makeenums.pl Add GdkEventSetting event for notification of changes to system settings, 2001-04-02 23:33:47 +00:00
Makefile.am Only include the Default and Emacs themes' gtkrc files. Include 2003-05-27 18:36:19 +00:00
makefile.msc new file to build it all ... added to EXTRA_DIST 2003-07-20 15:50:14 +00:00
testgdk.c Update. 2000-10-09 19:49:42 +00:00