-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix link error with Window::platform_hide
- Loading branch information
1 parent
fa5b0d6
commit 04bf838
Showing
4 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule fltk
updated
60 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <FL/Fl.H> | ||
#include <FL/platform.H> | ||
|
||
#if defined(FLTK_USE_WAYLAND) | ||
extern "C" void wl_proxy_marshal(void *proxy, unsigned opcode, ...); | ||
#elif defined(FLTK_USE_X11) | ||
// extern "C" void XUnmapWindow(void *display, unsigned long win); | ||
// extern "C" void XMapWindow(void *display, unsigned long win); | ||
#else | ||
#endif | ||
|
||
extern "C" void cfltk_platform_hide(void *proxy) { | ||
#if defined(FLTK_USE_WAYLAND) | ||
if (FLTK_USE_WAYLAND == 1 && fl_wl_display()) { | ||
wl_proxy_marshal(proxy, 1, 0, 0, 0); | ||
wl_proxy_marshal(proxy, 6); | ||
} | ||
#elif defined(FLTK_USE_X11) | ||
if (FLTK_USE_X11 == 1 && fl_x11_display()) { | ||
XUnmapWindow(fl_x11_display(), (unsigned long)proxy); | ||
} | ||
#else | ||
#endif | ||
} | ||
|
||
extern "C" void cfltk_platform_show(void *proxy) { | ||
#if defined(FLTK_USE_X11) | ||
if (FLTK_USE_X11 == 1 && fl_x11_display()) { | ||
XMapWindow(fl_x11_display(), (unsigned long)proxy); | ||
} | ||
#endif | ||
} |