Turns out we never actually need to check which window is in front
This commit is contained in:
@@ -16,9 +16,7 @@ namespace fs = boost::filesystem; // TODO: Centralize this alias
|
||||
|
||||
char keyToChar(sf::Keyboard::Key key, bool isShift);
|
||||
|
||||
bool isFrontWindow(sf::Window& win);
|
||||
void makeFrontWindow(sf::Window& win);
|
||||
|
||||
void setWindowFloating(sf::Window& win, bool floating);
|
||||
|
||||
void init_fileio();
|
||||
|
||||
@@ -70,16 +70,6 @@ char keyToChar(sf::Keyboard::Key key, bool isShift) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool isFrontWindow(sf::Window& win) {
|
||||
sf::WindowHandle handle = win.getSystemHandle();
|
||||
id nsHandle = id(handle);
|
||||
if([nsHandle isKindOfClass: [NSWindow class]]) {
|
||||
BOOL main = [nsHandle isMainWindow];
|
||||
return main;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void makeFrontWindow(sf::Window& win) {
|
||||
sf::WindowHandle handle = win.getSystemHandle();
|
||||
id nsHandle = id(handle);
|
||||
|
||||
Reference in New Issue
Block a user