1. 30 Jun, 2007 2 commits
    • Richard Hult's avatar
      Make this work properly for the root window. · d793d416
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_get_origin): Make
      	this work properly for the root window.
      
      svn path=/trunk/; revision=18311
      d793d416
    • Richard Hult's avatar
      Improve the tracking rect updating: - No need to override setFrame. - Use · 8fd51a22
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzView.c: Improve the tracking rect updating:
      	- No need to override setFrame.
      	- Use our own size instead of the bounds from for the view as it's
      	not always updated before the tracking rect.
      	- Only reset the tracking rect if the new window is nil).
      	
      	* gdk/quartz/GdkQuartzWindow.c: Update the bounds of the content
      	view when the window size changes.
      
      svn path=/trunk/; revision=18309
      8fd51a22
  2. 25 Jun, 2007 2 commits
  3. 19 Jun, 2007 2 commits
    • Johan Dahlin's avatar
      Fix a typo in a comment · f43329fc
      Johan Dahlin authored
          * gdk/quartz/GdkQuartzView.c ([GdkQuartzView -updateTrackingRect]): Fix a typo
          in a comment
      
      
      svn path=/trunk/; revision=18199
      f43329fc
    • Richard Hult's avatar
      Don't create or update the tracking rect in the window, move it to the · 0932e4be
      Richard Hult authored
      2007-06-20  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c (gdk_window_new): 
      	* gdk/quartz/GdkQuartzWindow.c (windowDidResize): Don't create or
      	update the tracking rect in the window, move it to the view where
      	it belongs.
      
      	* gdk/quartz/GdkQuartzView.c (updateTrackingRect)
      	(viewDidMoveToWindow, viewWillMoveToWindow)
      	(setFrame, setBounds): Create and update the tracking rect here.
      
      svn path=/trunk/; revision=18197
      0932e4be
  4. 17 Jun, 2007 3 commits
    • Richard Hult's avatar
      Forward Mac OS menu shortcut events to the right menu. · decff534
      Richard Hult authored
      2007-06-17  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Forward
      	Mac OS menu shortcut events to the right menu.
      
      svn path=/trunk/; revision=18178
      decff534
    • Richard Hult's avatar
      More refactoring of the event handling: Extract synthesizing of crossing · 33ec37ee
      Richard Hult authored
      2007-06-17  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate)
      	(synthesize_crossing_events_for_ns_event)
      	(find_window_for_ns_event): More refactoring of the event
      	handling: Extract synthesizing of crossing events from
      	find_window_for_ns_event so that it doesn't have any side effects,
      	and call the new function from gdk_event_translate instead.
      
      svn path=/trunk/; revision=18176
      33ec37ee
    • Richard Hult's avatar
      Remove pointless logging for unhandled events. Activate the application on · cd03a9e9
      Richard Hult authored
      2007-06-16  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (find_window_for_ns_event),
      	(gdk_event_translate): Remove pointless logging for unhandled events.
      	Activate the application on non-left clicks, since that is only done
      	for left clicks and we depend on it to get events routed properly for
      	context menus and other popup windows.
      
      svn path=/trunk/; revision=18175
      cd03a9e9
  5. 16 Jun, 2007 6 commits
  6. 10 Jun, 2007 1 commit
    • Michael Natterer's avatar
      fix angles by flipping the coordinate system back to its original y · f7ba83c6
      Michael Natterer authored
      2007-06-10  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkdrawable-quartz.c (gdk_quartz_draw_arc): fix
      	angles by flipping the coordinate system back to its original y
      	direction. The implementtion is still broken for ellipses, will
      	have to simulate them using bezier curves.
      
      
      svn path=/trunk/; revision=18095
      f7ba83c6
  7. 07 Jun, 2007 3 commits
  8. 06 Jun, 2007 5 commits
    • Richard Hult's avatar
      Rework how we get the event window: don't get the window from the NSEvent, · ec32b2aa
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (find_mouse_window_for_ns_event)
      	(find_window_for_ns_event): Rework how we get the event window:
      	don't get the window from the NSEvent, always use the mouse window
      	instead. Fix mouse window tracking by only using MouseExited for
      	non-gdk windows, and to always use the NSEvent window to get the
      	right gdk window in MouseEntered. Add comments to the code. Fixes bug
      	#350460.
      
      svn path=/trunk/; revision=18065
      ec32b2aa
    • Richard Hult's avatar
      Don't do anything if the two windows are the same. · ed8d0fc6
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (get_converted_window_coordinates):
      	Don't do anything if the two windows are the same.
      	(find_window_for_ns_event): Translate coordinates to be relative
      	the grab window when appropriate.
      
      svn path=/trunk/; revision=18064
      ed8d0fc6
    • Richard Hult's avatar
      Ignore if the old and new windows are the same. · 726c23e2
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c
      	(_gdk_quartz_events_update_mouse_window): Ignore if the old and new
      	windows are the same.
      
      svn path=/trunk/; revision=18049
      726c23e2
    • Richard Hult's avatar
      Update comment to be more clear and print a warning if we try to create a · fb6a0314
      Richard Hult authored
      2007-06-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (synthesize_crossing_events):
      	Update comment to be more clear and print a warning if we try to
      	create a crossing event without knowing what the current mouse
      	window is, to help track down focus bugs.
      
      	* gdk/quartz/gdkevents-quartz.c
      	(_gdk_quartz_events_update_focus_window): Fix indentation.
      
      svn path=/trunk/; revision=18047
      fb6a0314
    • Richard Hult's avatar
      Don't let temp windows become key window. · 949a8672
      Richard Hult authored
      2007-06-05  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzWindow.c: Don't let temp windows become key
      	window.
      
      svn path=/trunk/; revision=18046
      949a8672
  9. 04 Jun, 2007 4 commits
    • Richard Hult's avatar
      Don't try to make temp windows key windows, fixes problem introduced · 3337ee8f
      Richard Hult authored
      2007-06-04  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(show_window_internal): Don't try to make temp windows key
      	windows, fixes problem introduced below.
      
      svn path=/trunk/; revision=18040
      3337ee8f
    • Richard Hult's avatar
      * gdk/quartz/gdkwindow-quartz.c: Implement simple versions of · 72469142
      Richard Hult authored
      2007-06-04  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzWindow.c: * gdk/quartz/gdkwindow-quartz.c:
      	Implement simple versions of gdk_window_set_accept_focus and
      	gdk_window_set_focus_on_map.
      
      svn path=/trunk/; revision=18038
      72469142
    • Richard Hult's avatar
      Implement. · 60be3caa
      Richard Hult authored
      2007-06-04  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_raise),
      	(gdk_window_raise): Implement.
      
      svn path=/trunk/; revision=18037
      60be3caa
    • Richard Hult's avatar
      Implement gdk_window_set_transient_for. · 05e56066
      Richard Hult authored
      2007-06-04  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	* gdk/quartz/gdkwindow-quartz.h: Implement 
      	gdk_window_set_transient_for.
      
      svn path=/trunk/; revision=18036
      05e56066
  10. 03 Jun, 2007 2 commits
    • Richard Hult's avatar
      Set the key modifier state. · 9daa2554
      Richard Hult authored
      2007-06-03  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (create_crossing_event): Set the key
      	modifier state.
      
      svn path=/trunk/; revision=18017
      9daa2554
    • Richard Hult's avatar
      Make pointer grab emulation work a bit better: · 975e7683
      Richard Hult authored
      2007-06-03  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: Make pointer grab emulation work a bit
      	better:
      	(gdk_display_pointer_is_grabbed): Do what the docs say and don't
      	consider implicit grabs here.
      	(gdk_pointer_grab): Overriding a grab by the same app should always be
      	succesful.
      	(gdk_event_translate): Implicit grabs should not be owner events.
      
      svn path=/trunk/; revision=18016
      975e7683
  11. 01 Jun, 2007 3 commits
    • Richard Hult's avatar
      Fix the coordinates in crossing events so they are relative to the right · 1c413a69
      Richard Hult authored
      2007-06-01  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c:
      	(get_converted_window_coordinates), (create_crossing_event): Fix the
      	coordinates in crossing events so they are relative to the right
      	window.
      
      svn path=/trunk/; revision=18007
      1c413a69
    • Richard Hult's avatar
      Make function naming consistent for the various functions that retrieve · be540c29
      Richard Hult authored
      2007-06-01  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.[ch]: Make function naming
      	consistent for the various functions that retrieve data from an
      	event.
      
      	* gdk/quartz/gdkprivate-quartz.h: 
      	* gdk/quartz/gdkwindow-quartz.[ch]: Remove the now unused
      	_gdk_quartz_window_find_child_by_point() function.
      
      svn path=/trunk/; revision=18006
      be540c29
    • Matthias Clasen's avatar
      Add support for composited child windows. (#412882, Ryan Lortie) · 885ba046
      Matthias Clasen authored
      2007-06-01  Matthias Clasen  <mclasen@redhat.com>
      
              Add support for composited child windows.  (#412882, Ryan Lortie)
      
              * gdk/gdk.symbols:
              * gdk/gdkdisplay.h:
              * gdk/gdkinternals.h:
              * gdk/gdkwindow.[hc]: Add gdk_display_supports_composite() and
              gdk_window_set_composited().
      
              * gdk/x11/gdkevents-x11.c:
              * gdk/x11/gdkdisplay-x11.[hc]:
              * gdk/x11/gdkwindow-x11.[hc]: X11 implementation.
      
              * gdk/win32/gdkdisplay-win32.c:
              * gdk/win32/gdkwindow-win32.c: Dummy win32 implementration.
      
              * gdk/quartz/gdkdisplay-quartz.c:
              * gdk/quartz/gdkwindow-quartz.c: Dummy Quartz implementation.
      
              * gdk/directfb/gdkdisplay-directfb.c:
              * gdk/directfb/gdkwindow-directfb.c: Dummy DirectFB implementation.
      
              * tests/testgtk.c: Add a "composited window" test.
      
      
      svn path=/trunk/; revision=18004
      885ba046
  12. 30 May, 2007 1 commit
    • Richard Hult's avatar
      Add this function, bug #438440. · 71cf54ae
      Richard Hult authored
      2007-05-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkselection-quartz.c (gdk_free_text_list): Add this
      	function, bug #438440.
      
      svn path=/trunk/; revision=17991
      71cf54ae
  13. 28 May, 2007 6 commits
    • Richard Hult's avatar
      Break out code that was repeated into separate functions and call them · f2f1be4e
      Richard Hult authored
      2007-05-28  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (get_child_coordinates_from_ancestor)
      	(get_ancestor_coordinates_from_child): Break out code that was
      	repeated into separate functions and call them instead.
      	(find_window_for_mouse_nsevent): Break out this from
      	find_window_for_nsevent to make the code clearer.
      	(find_window_for_nsevent): Use the above and fix the returned
      	coordinates in the process so that they are always relative the
      	found window, both for the normal case and during grabs. Still
      	needs fixing for the case where we get nsevents for a window other
      	than than grab window during grabs.
      
      svn path=/trunk/; revision=17971
      f2f1be4e
    • Richard Hult's avatar
      Fix typo, we need both press and release in the mask to trigger implicit · d36c24a8
      Richard Hult authored
      2007-05-28  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (gdk_event_translate): Fix typo,
       	we need both press and release in the mask to trigger implicit
      	grabs.
      
      svn path=/trunk/; revision=17970
      d36c24a8
    • Richard Hult's avatar
      Reset all the grab state, to help debugging. (gdk_event_translate): Use · 93948cdb
      Richard Hult authored
      2007-05-28  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c (pointer_ungrab_internal): Reset
      	all the grab state, to help debugging.
      	(gdk_event_translate): Use pointer_ungrab_internal instead of
      	duplicating the code here.
      
      svn path=/trunk/; revision=17969
      93948cdb
    • Richard Hult's avatar
      Refactored version of _gdk_quartz_window_find_child_by_point, that doesn't · 6ecae9e5
      Richard Hult authored
      2007-05-28  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkprivate-quartz.h:
      	* gdk/quartz/gdkwindow-quartz.c (find_child_window_helper)
      	(_gdk_quartz_window_find_child): Refactored version of
      	_gdk_quartz_window_find_child_by_point, that doesn't return any
      	coordinates as the users of this function already have the
      	coordinates and need to translate them differently.
      	(_gdk_windowing_window_get_pointer): Fixup coordinate translation.
      	(_gdk_windowing_window_at_pointer): Likewise.
      
      svn path=/trunk/; revision=17968
      6ecae9e5
    • Richard Hult's avatar
      Don't traverse beyond the toplevel of the passed in window. · 52709dff
      Richard Hult authored
      2007-05-28  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c
      	(find_window_interested_in_event_mask): Don't traverse beyond the
      	toplevel of the passed in window.
      
      svn path=/trunk/; revision=17967
      52709dff
    • Richard Hult's avatar
      Set a size for the root window. · 63228c67
      Richard Hult authored
      2007-05-28  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init): Set
      	a size for the root window.
      
      svn path=/trunk/; revision=17966
      63228c67