Skip to content

Commit

Permalink
Adapt to libxfce4windowing v4.19.7 which includes Window activate API…
Browse files Browse the repository at this point in the history
… break (#627)
  • Loading branch information
fossfreedom authored Nov 11, 2024
1 parent 3a3ebd3 commit ba8170b
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 145 deletions.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ dep_canberra = dependency('libcanberra')
dep_canberra_gtk3 = dependency('libcanberra-gtk3')

# Needed for window tracking
dep_xfce4windowing = dependency('libxfce4windowing-0')
dep_xfce4windowing = dependency('libxfce4windowing-0', version: '>= 4.19.7')

# Create config.h
cdata = configuration_data()
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/tabswitcher.vala
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ namespace Budgie {
window_box.unselect_child(current);

try {
tab.window.activate(get_time());
tab.window.activate(null, get_time());
} catch (GLib.Error e) {
warning("Failed to activate window: %s\n", e.message);
}
Expand Down
2 changes: 1 addition & 1 deletion src/panel/applets/workspaces/WindowIcon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace Workspaces {
if (event.button != 1) return Gdk.EVENT_STOP;

try {
window.activate(event.time);
window.activate(null, event.time);
} catch (Error e) {
warning("Failed to activate window: %s", e.message);
}
Expand Down
Loading

0 comments on commit ba8170b

Please sign in to comment.