1. 31 Oct, 2007 2 commits
    • Richard Hult's avatar
      Implement manual resize and move. · 568228de
      Richard Hult authored
      2007-10-31  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzWindow.c:
      	* gdk/quartz/GdkQuartzWindow.h:
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_begin_resize_drag),
      	(gdk_window_begin_move_drag): Implement manual resize and move.
      
      svn path=/trunk/; revision=18955
      568228de
    • Richard Hult's avatar
      Setup autorelease pool, plugs occasional leak on leopard. · 75aabd41
      Richard Hult authored
      2007-10-31  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_impl_quartz_process_updates): Setup autorelease pool,
      	plugs occasional leak on leopard.
      
      svn path=/trunk/; revision=18954
      75aabd41
  2. 24 Oct, 2007 1 commit
    • Richard Hult's avatar
      Use an autorelease pool. · 1907d27d
      Richard Hult authored
      2007-10-24  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (update_toplevel_order): Use an
      	autorelease pool.
      
      svn path=/trunk/; revision=18946
      1907d27d
  3. 23 Oct, 2007 1 commit
    • Richard Hult's avatar
      Maintain a list for the stacking order of windows. Implement lower and · c42c7be0
      Richard Hult authored
      2007-10-23  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_raise, gdk_window_lower, gdk_window_new,
      	_gdk_windowing_window_destroy): Maintain a list for the stacking
      	order of windows. Implement lower and raise for child windows. The
      	list for toplevels is created on demand, and cleared when a window
      	gets or resigns main status and when new windows are created.
      	(find_child_window_helper): Use the sorted list to go through
      	windows from top to bottom. Take any titlebar in consideration for
      	toplevels, to stop events from sometimes punching through (bugs
      	#473813 and #489370).
      
      svn path=/trunk/; revision=18940
      c42c7be0
  4. 08 Oct, 2007 3 commits
  5. 02 Oct, 2007 1 commit
    • Richard Hult's avatar
      Don't do anything while in fullscreen mode. (gdk_window_set_decorations): · 7d66affd
      Richard Hult authored
      2007-10-02  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_move),
      	(gdk_window_resize): Don't do anything while in fullscreen mode.
      	(gdk_window_set_decorations): Update the size of the window after
      	showing/hiding the title bar so the size of the content area
      	doesn't change.
      	(gdk_window_get_decorations): NSBorderlessWindowMask is 0, so
      	don't try to check it as a bit being set.
      	(gdk_window_fullscreen), (gdk_window_unfullscreen): Implement.
      
      svn path=/trunk/; revision=18875
      7d66affd
  6. 06 Sep, 2007 1 commit
  7. 30 Aug, 2007 2 commits
  8. 31 Jul, 2007 1 commit
  9. 13 Jul, 2007 1 commit
    • Richard Hult's avatar
      Move from here... ...to here. (_gdk_windowing_window_destroy): Update the · ed82448b
      Richard Hult authored
      2007-07-13  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkprivate-quartz.h:
      	* gdk/quartz/gdkevents-quartz.c: (gdk_window_is_ancestor): Move
      	from here...
      	* gdk/quartz/gdkwindow-quartz.c: (_gdk_quartz_window_is_ancestor):
      	...to here.
      	(_gdk_windowing_window_destroy): Update the mouse window if the
      	destroyed window is an ancestor of the current one, not only if
      	they are the same.
      	(gdk_window_hide): Update the mouse window here too.
      
      svn path=/trunk/; revision=18467
      ed82448b
  10. 10 Jul, 2007 1 commit
    • Richard Hult's avatar
      Add hack to workaround the broken tracking rect implementation in quartz, · 2048ec59
      Richard Hult authored
      2007-07-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_new),
      	(show_window_internal), (gdk_window_show), (gdk_window_hide): Add
      	hack to workaround the broken tracking rect implementation in
      	quartz, that doesn't seem to produce events if the window shows up
      	under the mouse.
      
      svn path=/trunk/; revision=18440
      2048ec59
  11. 07 Jul, 2007 1 commit
    • Richard Hult's avatar
      ]) ([GdkQuartzWindow -windowDidBecomeMain:]): Keep a stack of main windows · 8b9cbdb2
      Richard Hult authored
      2007-07-07  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzWindow.c ([GdkQuartzWindow -windowDidResignMain:]) 
      	([GdkQuartzWindow -windowDidBecomeMain:]): 
      	* gdk/quartz/gdkwindow-quartz.c (_gdk_quartz_window_did_resign_main)
      	(_gdk_quartz_window_did_become_main, gdk_window_hide)
      	(_gdk_windowing_window_destroy): Keep a stack of main windows and
      	select the most recent one when hiding/closing the current one.
      
      svn path=/trunk/; revision=18396
      8b9cbdb2
  12. 06 Jul, 2007 1 commit
  13. 30 Jun, 2007 2 commits
  14. 19 Jun, 2007 1 commit
    • 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
  15. 16 Jun, 2007 2 commits
  16. 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
  17. 01 Jun, 2007 2 commits
    • 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
  18. 28 May, 2007 3 commits
    • 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
      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
    • Richard Hult's avatar
      Add comments about what various coordinates are relative to. · 0057d194
      Richard Hult authored
      2007-05-28  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: Add comments about what various
      	coordinates are relative to.
      
      svn path=/trunk/; revision=17965
      0057d194
  19. 30 Apr, 2007 1 commit
    • Richard Hult's avatar
      Implement. · 34c0f15b
      Richard Hult authored
      2007-04-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c: (gdk_window_set_opacity):
      	Implement.
      
      svn path=/trunk/; revision=17743
      34c0f15b
  20. 25 Apr, 2007 1 commit
  21. 18 Apr, 2007 1 commit
    • Richard Hult's avatar
      Refactor the process updates functions to share code between them. Also · c8d89a96
      Richard Hult authored
      2007-04-18  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_quartz_process_updates_internal),
      	(gdk_window_quartz_process_all_updates),
      	(gdk_window_impl_quartz_process_updates): Refactor the process 
      	updates functions to share code between them. Also fixes bug 
      	#427660 by not updating larger regions than necessary.
      
      svn path=/trunk/; revision=17610
      c8d89a96
  22. 06 Apr, 2007 1 commit
    • Richard Hult's avatar
      Clean up namespaces to make the code more maintainable. · 9e2114e6
      Richard Hult authored
      2007-04-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/: Clean up namespaces to make the code more
      	maintainable.
      
      	* gdk/quartz/gdkdrawable-quartz.c:
      	* gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
      	images, by setting the pattern phase for the CG pattern.
      
      svn path=/trunk/; revision=17584
      9e2114e6
  23. 10 Mar, 2007 1 commit
    • Richard Hult's avatar
      Update for the new quartz cairo surface API (#410442). Don't lock focus · d7a33ade
      Richard Hult authored
      2007-03-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkdrawable-quartz.c:
      	(gdk_quartz_drawable_get_context): Update for the new quartz cairo 
      	surface API (#410442). Don't lock focus unless called outside of an 
      	expose event.
      	(gdk_quartz_drawable_release_context): Only flush the CG context and 
      	unlock focus if called outside of expose.
      	(gdk_quartz_ref_cairo_surface): Reuse the surface during its lifetime.
      	(_gdk_quartz_drawable_finish): New function, used to free the cached
      	cairo surface.
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	(gdk_window_impl_quartz_begin_paint_region): A few small style changes.
      	(gdk_window_quartz_process_all_updates): Move the autorelease pool
      	allocation and freeing outside the loop.
      	(_gdk_windowing_window_destroy): Finish the drawable.
      	(move_resize_window_internal): Small cleanup and remove comment.
      	(_gdk_window_impl_quartz_get_type): No need to make the type info
      	static.
      
      	* gdk/quartz/gdkpixmap-quartz.c: Finish the drawable.
      
      svn path=/trunk/; revision=17463
      d7a33ade
  24. 18 Feb, 2007 1 commit
  25. 21 Sep, 2006 2 commits
    • Michael Natterer's avatar
      Implement lots of value setters for GdkGC, based on a heavily modified · 2f50232a
      Michael Natterer authored
      2006-09-21  Michael Natterer  <mitch@imendio.com>
      
             Implement lots of value setters for GdkGC, based on a heavily
             modified patch from Thomas Broyer (bug #328853):
      
      	* gdk/quartz/gdkcolor-quartz.c: removed functions which set colors
      	on the CGContext. Instead, added gdk_quartz_get_rgba_from_pixel()
      	which simply returns RGBA values from a GdkColor's pixel value.
      	See gdk_quartz_update_context_from_gc() below.
      
      	* gdk/quartz/gdkprivate-quartz.h (struct GdkGCQuartz): added lots
      	of members for the newly suppored GC values. Added enum
      	GdkQuartzContextValuesMask which is used for setting up the
      	CGContext for filling and/or stroking.
      
      	* gdk/quartz/gdkgc-quartz.c (gdk_quartz_gc_get_values)
      	(gdk_quartz_gc_set_values)
      	(_gdk_windowing_gc_copy): support a lot more GC values.
      
      	(gdk_quartz_update_context_from_gc): added
      	GdkQuartzContextValuesMask parameter and set filling/stroking
      	parameters accordingly. This function also gained full control
      	over the FG and BG colors (they can't be set separately any more).
      
      	The stipple mask part of the patch doesn't work but seems to take
      	the right approach and doesn't make things worse, so I applied it.
      
      	Did *not* apply the clipping part of the patch since I don't
      	understand it (I don't understand the version in CVS either, but
      	it at least works :-)
      
      	* gdk/quartz/gdkdrawable-quartz.c: pass the right masks to
      	gdk_quartz_update_context_from_gc() and removed separate color
      	setting calls. Some minor fixes.
      
      	* gdk/quartz/gdkwindow-quartz.c
      	(gdk_window_impl_quartz_begin_paint_region): set the CGContext's
      	fill color manually. We don't have/need a GC here.
      2f50232a
    • Michael Natterer's avatar
      fix cast: it's drawable_impl->wrapper that is the GdkWindow, not the · c148c41b
      Michael Natterer authored
      2006-09-21  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c
      	(gdk_window_impl_quartz_begin_paint_region): fix cast: it's
      	drawable_impl->wrapper that is the GdkWindow, not the
      	drawable_impl itself.
      c148c41b
  26. 30 Aug, 2006 2 commits
    • Richard Hult's avatar
      Fix build. · 5467cb3c
      Richard Hult authored
      2006-08-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c (gdk_window_beep): Fix build.
      5467cb3c
    • Matthias Clasen's avatar
      Add a function to beep on a window. For X11, implement this with XkbBell. · 6760faeb
      Matthias Clasen authored
      2006-08-29  Matthias Clasen  <mclasen@redhat.com>
      
      	* gdk/gdkwindow.h:
      	* gdk/gdk.symbols:
      	* gdk/directfb/gdkwindow-directfb.c (gdk_window_beep):
      	* gdk/win32/gdkwindow-win32.c (gdk_window_beep):
      	* gdk/quartz/gdkwindow-quartz.c (gdk_window_beep):
      	* gdk/x11/gdkwindow-x11.c (gdk_window_beep): Add a function
      	to beep on a window. For X11, implement this with
      	XkbBell.  (#353455, Mariano Suárez-Alvarez)
      6760faeb