1. 12 Nov, 2008 1 commit
    • Richard Hult's avatar
      Bug 550942 – [patch] Rework of gdkeventloop-quartz.c · b81b9094
      Richard Hult authored
      2008-11-12  Richard Hult  <richard@imendio.com>
      
      	Bug 550942 – [patch] Rework of gdkeventloop-quartz.c
      
      	* gdk/gdk.c:
      	* gdk/gdkinternals.h: Add eventloop debug facility.
      	* gdk/quartz/gdkeventloop-quartz.c: Big rework of the quartz
      	mainloop integration, patch from Owen Taylor. See bug #550942 for
      	the details.
      
      svn path=/trunk/; revision=21783
      b81b9094
  2. 07 Aug, 2008 1 commit
    • Richard Hult's avatar
      Bug 535573 – Deadlock in gdkeventloop-quartz.c:poll_func() · cc127bf0
      Richard Hult authored
      2008-08-07  Richard Hult  <richard@imendio.com>
      
      	Bug 535573 – Deadlock in gdkeventloop-quartz.c:poll_func()
      
      	* gdk/quartz/gdkeventloop-quartz.c: (gdk_event_prepare),
      	(select_thread_func), (poll_func): Patch by Yevgen Muntyan, fixes
      	deadlock and missing events.
      
      svn path=/trunk/; revision=21030
      cc127bf0
  3. 22 Jun, 2008 1 commit
    • Johan Dahlin's avatar
      Include "config.h" instead of <config.h> Command used: find -name · d97cdbdf
      Johan Dahlin authored
      2008-06-21  Johan Dahlin  <jdahlin@async.com.br>
      
          * *.[ch]: Include "config.h" instead of <config.h>
          Command used:
          find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g'
          Rubberstamped by Mitch and Tim
      
      
      svn path=/trunk/; revision=20669
      d97cdbdf
  4. 08 May, 2008 1 commit
  5. 24 Feb, 2008 1 commit
    • Richard Hult's avatar
      Use the subtype field for the custom event that is used to wake up the · 4dbd9d23
      Richard Hult authored
      2008-02-24  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkprivate-quartz.h:
      	* gdk/quartz/gdkeventloop-quartz.c: (got_fd_activity), (poll_func):
      	Use the subtype field for the custom event that is used to wake up
      	the mainloop so we can have other custom event types.
      
      	* gdk/quartz/gdkevents-quartz.c:
      	(_gdk_quartz_events_trigger_crossing_events):
      	* gdk/quartz/gdkwindow-quartz.c: (show_window_internal): Create
      	crossing events after showing a window if necessary, to work
      	around problems with the tracking rect API.
      
      svn path=/trunk/; revision=19637
      4dbd9d23
  6. 10 Dec, 2007 2 commits
    • Richard Hult's avatar
      Replace the autorelease pools used for each drawing context and in · d7f3ab05
      Richard Hult authored
      2007-12-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkdrawable-quartz.c:
      	(gdk_quartz_drawable_get_context),
      	(gdk_quartz_drawable_release_context):
      	* gdk/quartz/gdkeventloop-quartz.c: (gdk_event_prepare),
      	(gdk_event_check), (gdk_event_dispatch), (poll_func):
      	* gdk/quartz/gdkwindow-quartz.h: Replace the autorelease pools
      	used for each drawing context and in prepare, dispatch and poll
      	with one that exists across each main loop iteration. Fixes leaks
      	on leopard and protects against future leaks introduce when the
      	underlying system changes again (bug #492977).
      
      svn path=/trunk/; revision=19149
      d7f3ab05
    • Richard Hult's avatar
      Fix a bug where we could end up trying to handle the same event more than · fd8c2c01
      Richard Hult authored
      2007-12-10  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkprivate-quartz.h: 
      	* gdk/quartz/gdkeventloop-quartz.c:
      	(_gdk_quartz_event_loop_get_pending),
      	(_gdk_quartz_event_loop_check_pending),
      	(_gdk_quartz_event_loop_release_event), (gdk_event_prepare),
      	(gdk_event_check), (gdk_event_dispatch):
      	* gdk/quartz/gdkevents-quartz.c: (gdk_events_pending)
      	(_gdk_events_queue): Fix a bug where we could end up trying to
      	handle the same event more than once. Based on patch from Paul
      	Davis.
      
      svn path=/trunk/; revision=19143
      fd8c2c01
  7. 28 Apr, 2007 1 commit
    • Ronald Bultje's avatar
      fix two more potential races that could happen when an application is · 92563b7d
      Ronald Bultje authored
      2007-04-28  Ronald Bultje  <rbultje@ronald.bitfreak.net>
      
              * gdk/quartz/gdkeventloop-quartz.c: (select_thread_func),
              (poll_func): fix two more potential races that could happen when
              an application is polling in the mainloop and a separate thread
              tries to wake it up using g_idle_add(). Fixes #425271 comment 5.
      
      
      svn path=/trunk/; revision=17680
      92563b7d
  8. 11 Apr, 2007 1 commit
    • Ronald Bultje's avatar
      Protect the polling thread setup and shutdown function by mutexes and read · 7c0f9e4d
      Ronald Bultje authored
              * gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
                setup and shutdown function by mutexes and read the wakeup
                pipe unconditionally and unblocking. This should make the main
                loop always be woken up when using g_idle_add() from another
                thread in the Quartz backend (#425271).
      
      
      svn path=/trunk/; revision=17595
      7c0f9e4d
  9. 18 Feb, 2007 1 commit
    • Richard Hult's avatar
      Import AppKit.h instead of Quartz.h. Don't use userSpaceScaleFactor for · a862e9f6
      Richard Hult authored
      2007-02-18  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/GdkQuartzView.h:
      	* gdk/quartz/GdkQuartzWindow.h:
      	* gdk/quartz/gdkquartz.h: Import AppKit.h instead of Quartz.h.
      	* gdk/quartz/gdkscreen-quartz.c: (get_mm_from_pixels): Don't use 
      	userSpaceScaleFactor for 10.3. Those changes bring us closer to working
      	on panther, patch from Mathias Hasselmann.
      	
      	* gdk/quartz/gdkeventloop-quartz.c: Add includes to fix build warnings.
      
      svn path=/trunk/; revision=17323
      a862e9f6
  10. 28 Dec, 2006 1 commit
    • Mikael Hallendal's avatar
      Factored out the event loop integration into gdkeventloop-quartz.c. · 693c3c26
      Mikael Hallendal authored
      2006-12-28  Mikael Hallendal  <micke@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: Factored out the event loop
      	integration into gdkeventloop-quartz.c.
      
      	* gdk/quartz/Makefile.am: Added gdkeventloop-quartz.c
      
      	* gdk/quartz/gdkeventloop-quartz.c: New file containing the event loop
      	integration.
      693c3c26