Ticket #67408: gtk3_gdkwindow_quartz_c.diff
File gtk3_gdkwindow_quartz_c.diff, 1.6 KB (added by rmottola (Riccardo), 15 months ago) |
---|
-
gdk/quartz/gdkwindow-quartz.c
old new 82 82 83 83 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 84 84 static FullscreenSavedGeometry *get_fullscreen_geometry (GdkWindow *window); 85 NSWindowCollectionBehaviorFullScreenPrimary = NSWindowCollectionBehaviorDefault; 86 87 #ifndef AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER 88 typedef NSUInteger NSWindowCollectionBehavior; 89 90 @interface NSWindow (GTKExtensions) 91 - (void)setCollectionBehavior:(NSWindowCollectionBehavior)behavior; 92 @end 93 94 @implementation NSWindow (GTKExtensions) 95 - (void)setCollectionBehavior:(NSWindowCollectionBehavior)behavior 96 { 97 } 98 @end 99 #endif 100 85 101 #endif 86 102 87 103 #define FULLSCREEN_DATA "fullscreen-data" … … 2909 2925 { 2910 2926 #endif 2911 2927 FullscreenSavedGeometry *geometry; 2912 GdkWindowImplQuartz *impl = gdk_window_get_quartz_impl (window);2913 2928 NSRect frame; 2914 2929 2915 2930 if (GDK_WINDOW_DESTROYED (window) || … … 2917 2932 !impl) 2918 2933 return; 2919 2934 2935 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 2920 2936 geometry = get_fullscreen_geometry (window); 2937 #endif 2921 2938 if (!geometry) 2922 2939 { 2923 2940 geometry = g_new (FullscreenSavedGeometry, 1); … … 2975 2992 else 2976 2993 { 2977 2994 #endif 2978 GdkWindowImplQuartz *impl = gdk_window_get_quartz_impl (window);2979 2995 FullscreenSavedGeometry *geometry; 2980 2996 2981 2997 if (GDK_WINDOW_DESTROYED (window) || … … 2983 2999 !impl) 2984 3000 return; 2985 3001 3002 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 2986 3003 geometry = get_fullscreen_geometry (window); 3004 #endif 2987 3005 if (geometry) 2988 3006 { 2989 3007 SetSystemUIMode (kUIModeNormal, 0);