1. 08 Oct, 2007 2 commits
  2. 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
  3. 06 Sep, 2007 1 commit
  4. 30 Aug, 2007 3 commits
  5. 31 Jul, 2007 1 commit
  6. 18 Jul, 2007 1 commit
    • Richard Hult's avatar
      Ref the cursor in the cached case. · 032b0aab
      Richard Hult authored
      2007-07-18  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkcursor-quartz.c (gdk_cursor_new_for_display): Ref
      	the cursor in the cached case.
      
      svn path=/trunk/; revision=18490
      032b0aab
  7. 14 Jul, 2007 1 commit
    • Richard Hult's avatar
      Plug leak. · eb52c4f1
      Richard Hult authored
      2007-07-14  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c:
      	(_gdk_quartz_events_update_cursor): Plug leak.
      
      svn path=/trunk/; revision=18468
      eb52c4f1
  8. 13 Jul, 2007 2 commits
    • 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
    • Richard Hult's avatar
      Add stubs. · 7f66d205
      Richard Hult authored
      2007-07-13  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkcolor-quartz.c: (gdk_colors_alloc),
      	(gdk_colors_free): Add stubs.
      
      svn path=/trunk/; revision=18466
      7f66d205
  9. 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
  10. 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
  11. 06 Jul, 2007 2 commits
    • Richard Hult's avatar
      Fix (de)miniaturizing transient windows, by (un)setting the parent before · 5a4ed10f
      Richard Hult authored
      2007-07-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkprivate-quartz.h:
      	* gdk/quartz/gdkwindow-quartz.c:
      	* gdk/quartz/GdkQuartzWindow.c: Fix (de)miniaturizing transient
      	windows, by (un)setting the parent before and after miniaturizing.
      
      svn path=/trunk/; revision=18388
      5a4ed10f
    • Richard Hult's avatar
      Add stub. · 9ba84faa
      Richard Hult authored
      2007-07-06  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkkeys-quartz.c (gdk_keymap_have_bidi_layouts): Add
      	stub.
      
      svn path=/trunk/; revision=18387
      9ba84faa
  12. 03 Jul, 2007 2 commits
  13. 30 Jun, 2007 6 commits
    • Richard Hult's avatar
      Continue the event handling cleanup: · 460833b2
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	Continue the event handling cleanup:
      
      	* gdk/quartz/gdkevents-quartz.c: (synthesize_crossing_events):
      	Don't do anything if the old and new windows are the same,
      	simplifies the callers.
      	(find_mouse_window_for_ns_event): Always return a window (root
      	instead of NULL). Remove unneccessary check for the current mouse
      	window being NULL, that was a workaround for a now fixed
      	bug. Convert to root coordinates if we don't find a window.
      	(synthesize_crossing_events_for_ns_event): Simplify and add
      	comment.
      
      svn path=/trunk/; revision=18316
      460833b2
    • Richard Hult's avatar
      Simplify (get the origin directly from the window). · ee283b05
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c:
      	(synthesize_crossing_events_for_ns_event): Simplify (get the
      	origin directly from the window).
      
      svn path=/trunk/; revision=18315
      ee283b05
    • Richard Hult's avatar
      No need to special case the root window now that it has the right size. · a598c633
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkevents-quartz.c: (create_crossing_event),
      	(synthesize_crossing_events), (find_mouse_window_for_ns_event),
      	(synthesize_crossing_events_for_ns_event): No need to special case
      	the root window now that it has the right size.
      
      svn path=/trunk/; revision=18314
      a598c633
    • Richard Hult's avatar
      Improve comments in those files. Add a debugging helper to print out · 95f61d98
      Richard Hult authored
      2007-06-30  Richard Hult  <richard@imendio.com>
      
      	* gdk/quartz/gdkwindow-quartz.c:
      	* gdk/quartz/gdkevents-quartz.c: Improve comments in those
      	files. Add a debugging helper to print out information about a
      	window.
      
      svn path=/trunk/; revision=18313
      95f61d98
    • 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
  14. 25 Jun, 2007 2 commits
  15. 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
  16. 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
  17. 16 Jun, 2007 6 commits
  18. 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
  19. 07 Jun, 2007 2 commits
    • Michael Natterer's avatar
      add utility function gdk_quartz_fix_cap_not_last_line() which fixes the · 6c3637ea
      Michael Natterer authored
      2007-06-08  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkdrawable-quartz.c: add utility function
      	gdk_quartz_fix_cap_not_last_line() which fixes the coordinates for
      	GDK_CAP_NOT_LAST lines at least for horizontal and vertical lines.
      
      	(gdk_quartz_draw_segments)
      	(gdk_quartz_draw_lines): use it here.
      
      
      svn path=/trunk/; revision=18080
      6c3637ea
    • Michael Natterer's avatar
      add gdk_gc_quartz_init() and set some values to the defaults used by X11. · dde0d5ff
      Michael Natterer authored
      2007-06-07  Michael Natterer  <mitch@imendio.com>
      
      	* gdk/quartz/gdkgc-quartz.c: add gdk_gc_quartz_init() and set
      	some values to the defaults used by X11.
      
      	(gdk_quartz_gc_set_values): really set cap_style when
      	GDK_GC_CAP_STYLE is in the mask, not line_style.
      
      
      svn path=/trunk/; revision=18079
      dde0d5ff