Skip to content

Commit

Permalink
Fix name conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft authored and SteveSandersonMS committed Dec 23, 2019
1 parent 5d48327 commit faf35ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/WebWindow.Native/WebWindow.Mac.AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "WebWindow.h"
#include <map>

extern map<NSWindow*, WebWindow*> nsWindowToWebWindow;
extern std::map<NSWindow*, WebWindow*> nsWindowToWebWindow;

@implementation MyApplicationDelegate : NSObject
- (id)init {
Expand All @@ -19,7 +19,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification {

- (void)windowDidResize:(NSNotification *)notification {
NSWindow *window = notification.object;
WebWindow* webWindow = nsWindowToWebWindow[hwnd];
WebWindow* webWindow = nsWindowToWebWindow[window];
if (webWindow)
{
int width, height;
Expand All @@ -30,7 +30,7 @@ - (void)windowDidResize:(NSNotification *)notification {

- (void)windowDidMove:(NSNotification *)notification {
NSWindow *window = notification.object;
WebWindow* webWindow = nsWindowToWebWindow[hwnd];
WebWindow* webWindow = nsWindowToWebWindow[window];
if (webWindow)
{
int x, y;
Expand Down
13 changes: 5 additions & 8 deletions src/WebWindow.Native/WebWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ typedef const wchar_t* AutoString;
typedef char* AutoString;
#endif

struct Rect
{
int x, y;
int width, height;
};

struct Monitor
{
Rect monitor;
Rect work;
struct MonitorRect
{
int x, y;
int width, height;
} monitor, work;
};

typedef void (*ACTION)();
Expand Down

0 comments on commit faf35ee

Please sign in to comment.