Skip to content

Commit bb4b02b

Browse files
committed
mainwindow: gated of gdk_wayland_* calles behind version check
This should ensure, that NoteKit will continue to be build on RHEL 8.
1 parent 3dcf7e7 commit bb4b02b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mainwindow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,7 @@ void CMainWindow::SettingCsdUpdate() {
793793
* unable to change the decorations after it's initial set, so
794794
* NoteKit had to be restarted in order to have proper decorations.
795795
*/
796+
#if GTK_CHECK_VERSION (3,22,0)
796797
#ifdef GDK_WINDOWING_WAYLAND
797798
if (GDK_IS_WAYLAND_DISPLAY (gdk_window_get_display(window))) {
798799
if (state) {
@@ -802,6 +803,7 @@ void CMainWindow::SettingCsdUpdate() {
802803
}
803804
}
804805
#endif
806+
#endif
805807
/*
806808
* TODO: here is space for potential support of broadway, w32 & quartz:
807809
* IMO broadway support for SSD irrelevant, as it doesn't make much sense.

0 commit comments

Comments
 (0)