XQuartz: More sanitization of the namespace
(cherry picked from commit bc50d41f9d1aec04f0de0478cbd5036f1fe9b81e)
This commit is contained in:
parent
c2f0d020b5
commit
49f2bb4681
|
@ -31,7 +31,7 @@
|
|||
#define X11APPLICATION_H 1
|
||||
|
||||
#if __OBJC__
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#import "X11Controller.h"
|
||||
|
||||
@interface X11Application : NSApplication {
|
||||
|
@ -55,7 +55,7 @@
|
|||
- (void) prefs_set_string:(NSString *)key value:(NSString *)value;
|
||||
- (void) prefs_synchronize;
|
||||
|
||||
- (BOOL) x_active;
|
||||
- (OSX_BOOL) x_active;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
# define _APPLEWM_SERVER_
|
||||
# include "X11/extensions/applewm.h"
|
||||
# include "micmap.h"
|
||||
<<<<<<< HEAD:hw/xquartz/X11Application.m
|
||||
=======
|
||||
|
||||
>>>>>>> bc50d41... XQuartz: More sanitization of the namespace:hw/xquartz/X11Application.m
|
||||
#include <mach/mach.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
|
@ -151,7 +155,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
|
|||
[self orderFrontStandardAboutPanelWithOptions: dict];
|
||||
}
|
||||
|
||||
- (void) activateX:(BOOL)state {
|
||||
- (void) activateX:(OSX_BOOL)state {
|
||||
/* Create a TSM document that supports full Unicode input, and
|
||||
have it activated while X is active (unless using the old
|
||||
keymapping files) */
|
||||
|
@ -185,7 +189,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
|
|||
|
||||
- (void) sendEvent:(NSEvent *)e {
|
||||
NSEventType type;
|
||||
BOOL for_appkit, for_x;
|
||||
OSX_BOOL for_appkit, for_x;
|
||||
|
||||
type = [e type];
|
||||
|
||||
|
@ -644,7 +648,7 @@ static NSMutableArray * cfarray_to_nsarray (CFArrayRef in) {
|
|||
AppleWMCopyToPasteboard);
|
||||
}
|
||||
|
||||
- (BOOL) x_active {
|
||||
- (OSX_BOOL) x_active {
|
||||
return _x_active;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
#if __OBJC__
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
#include "sanitizedCocoa.h"
|
||||
#include "xpr/x-list.h"
|
||||
|
||||
@interface X11Controller : NSObject
|
||||
|
@ -67,14 +67,14 @@
|
|||
int checked_window_item;
|
||||
x_list *pending_apps;
|
||||
|
||||
BOOL finished_launching;
|
||||
BOOL can_quit;
|
||||
OSX_BOOL finished_launching;
|
||||
OSX_BOOL can_quit;
|
||||
}
|
||||
|
||||
- (void) set_window_menu:(NSArray *)list;
|
||||
- (void) set_window_menu_check:(NSNumber *)n;
|
||||
- (void) set_apps_menu:(NSArray *)list;
|
||||
- (void) set_can_quit:(BOOL)state;
|
||||
- (void) set_can_quit:(OSX_BOOL)state;
|
||||
- (void) server_ready;
|
||||
|
||||
- (IBAction) apps_table_show:(id)sender;
|
||||
|
|
|
@ -600,7 +600,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
|
|||
#endif
|
||||
}
|
||||
|
||||
- (void) set_can_quit:(BOOL)state
|
||||
- (void) set_can_quit:(OSX_BOOL)state
|
||||
{
|
||||
can_quit = state;
|
||||
}
|
||||
|
@ -667,7 +667,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
|
|||
AHLookupAnchor ((CFStringRef)NSLocalizedString(@"Mac Help", no comment), CFSTR ("mchlp2276"));
|
||||
}
|
||||
|
||||
- (BOOL) validateMenuItem:(NSMenuItem *)item
|
||||
- (OSX_BOOL) validateMenuItem:(NSMenuItem *)item
|
||||
{
|
||||
NSMenu *menu = [item menu];
|
||||
|
||||
|
@ -739,7 +739,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
|
|||
pending_apps = NULL;
|
||||
}
|
||||
|
||||
- (BOOL) application:(NSApplication *)app openFile:(NSString *)filename
|
||||
- (OSX_BOOL) application:(NSApplication *)app openFile:(NSString *)filename
|
||||
{
|
||||
const char *name = [filename UTF8String];
|
||||
|
||||
|
@ -752,8 +752,8 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
|
|||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL) applicationShouldHandleReopen:(NSApplication *)app
|
||||
hasVisibleWindows:(BOOL)hasVis {
|
||||
- (OSX_BOOL) applicationShouldHandleReopen:(NSApplication *)app
|
||||
hasVisibleWindows:(OSX_BOOL)hasVis {
|
||||
DarwinSendDDXEvent(kXquartzBringAllToFront, 0);
|
||||
return YES;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue