Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mainwindow: gated gdk_wayland_* calls behind version check #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,24,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