1. 02 Oct, 2014 1 commit
  2. 19 Feb, 2014 1 commit
  3. 07 Feb, 2014 3 commits
  4. 12 Nov, 2013 1 commit
    • Owen W. Taylor's avatar
      Handle recursion from motion event handlers · f50a3af1
      Owen W. Taylor authored
      If a motion event handler (or other handler running from the flush-events
      phase of the frame clock) recursed the main loop then flushing wouldn't
      complete until after the recursed main loop returned, and various aspects
      of the state would get out of sync.
      
      To fix this, change flushing of the event queue to simply mark events as
      ready to flush, and let normal event delivery handle the rest.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=705176
      f50a3af1
  5. 11 Aug, 2013 1 commit
  6. 28 Feb, 2013 1 commit
  7. 21 Feb, 2013 1 commit
    • Owen W. Taylor's avatar
      Broadway/Quartz/Win32: make event source prepare()/check() note paused status · df3e19b4
      Owen W. Taylor authored
      When events are paused, we should not return TRUE from prepare() or check().
      GTK+ handles this for events that are already in the GTK+ queue, but
      we also need suppress checks for events that are in the system queue - if we
      return TRUE indicating that there are events in the system queue, then we'll
      call dispatch(), and do nothing. The event source will spin, and will never
      run the other phases of the paint clock.
      
      (Broadway doesn't have a window system queue separate from the GDK event queue,
      but we write the function the same way for consistency.)
      
      https://bugzilla.gnome.org/show_bug.cgi?id=694274
      df3e19b4
  8. 14 Sep, 2012 1 commit
    • Michael Natterer's avatar
      quartz: Bug 674108 - Hard crash due to wrong NSAutoreleasePool stacking · 1ad25dfb
      Michael Natterer authored
      Apply patch from Kristian Rietveld which addresses two issues
      in gdkeventloop-quartz.c:
      
      This patch moves the autorelease pool drain and introduces protection against
      the invalidated ufds. Basically, when we suspect ufds has been invalidated by a
      recursive main loop instance, we refrain from calling the collect function.
      (cherry picked from commit 79b3326e)
      1ad25dfb
  9. 30 Jul, 2012 1 commit
  10. 11 Nov, 2011 1 commit
    • Michael Natterer's avatar
      quartz: fix a race condition when waking up the CGRunLoop · e19cbd7a
      Michael Natterer authored
      Wake up the run loop unconditionally (don't check if it is waiting) because
      it might go into waiting state right after we checked for it. Fixes GIMP
      startup (which has a lot of GIOChannel I/O but zero NSEvents) from several
      minutes to a few seconds.
      (cherry picked from commit 0729cdc9)
      e19cbd7a
  11. 06 Nov, 2011 1 commit
    • Michael Natterer's avatar
      quartz: handle recursive CFRunLoops · d1c6bcb8
      Michael Natterer authored
      Fixes e.g. crashs when dropping from finder.
      
      Turn the "getting_events" boolean into a counter to handle poll_func()
      being called recursively, and track the loop depth correctly by
      changing its counter before bailing out in run_loop_observer_callback().
      This way we reallocate our autorelease pool at the right time, and
      don't kill memory that is still in use by outer run loops.
      
      Also drain, not release the pool, just for some defensive forward
      compatibility.
      (cherry picked from commit ef9a92d2)
      d1c6bcb8
  12. 23 Feb, 2011 1 commit
  13. 02 Jan, 2011 1 commit
  14. 22 Dec, 2010 1 commit
  15. 02 Dec, 2010 1 commit
  16. 04 Jun, 2010 1 commit
  17. 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
  18. 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
  19. 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
  20. 08 May, 2008 1 commit
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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