Skip to content

Commit

Permalink
mainwindow: gated of gdk_wayland_* calles behind version check
Browse files Browse the repository at this point in the history
This should ensure, that NoteKit will continue to be build on RHEL 8.
  • Loading branch information
sp1ritCS committed May 3, 2023
1 parent 3dcf7e7 commit bb4b02b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ void CMainWindow::SettingCsdUpdate() {
* unable to change the decorations after it's initial set, so
* NoteKit had to be restarted in order to have proper decorations.
*/
#if GTK_CHECK_VERSION (3,22,0)
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gdk_window_get_display(window))) {
if (state) {
Expand All @@ -802,6 +803,7 @@ void CMainWindow::SettingCsdUpdate() {
}
}
#endif
#endif
/*
* TODO: here is space for potential support of broadway, w32 & quartz:
* IMO broadway support for SSD irrelevant, as it doesn't make much sense.
Expand Down

0 comments on commit bb4b02b

Please sign in to comment.