mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 04:11:28 +00:00
wayland: Split the check for compositor and wm_base into two checks.
This commit is contained in:
parent
c1cce2ad67
commit
3db7a6fbd4
1 changed files with 5 additions and 2 deletions
|
@ -755,10 +755,13 @@ int NSToWayland(struct window *window, int ns_y)
|
|||
wl_display_dispatch(wlconfig->display);
|
||||
wl_display_roundtrip(wlconfig->display);
|
||||
|
||||
if (!wlconfig->compositor || !wlconfig->wm_base) {
|
||||
if (!wlconfig->compositor) {
|
||||
[NSException raise: NSWindowServerCommunicationException
|
||||
format: @"Unable to get compositor"];
|
||||
|
||||
}
|
||||
if (!wlconfig->wm_base) {
|
||||
[NSException raise: NSWindowServerCommunicationException
|
||||
format: @"Unable to get xdg-shell / xdg_wm_base"];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue