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

Fix some small deprecations #273

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
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: 1 addition & 1 deletion src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Dock.Application : Gtk.Application {
unity_client.add_client (LauncherManager.get_default ());
}

active_window.present_with_time (Gdk.CURRENT_TIME);
active_window.present ();
}

public override bool dbus_register (DBusConnection connection, string object_path) throws Error {
Expand Down
4 changes: 2 additions & 2 deletions src/Launcher.vala
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ public class Dock.Launcher : Gtk.Box {
return;
}

if (((x > get_allocated_width () / 2) && target_index + 1 == source_index) || // Cursor entered from the RIGHT and source IS our neighbouring launcher to the RIGHT
((x < get_allocated_width () / 2) && target_index - 1 != source_index) // Cursor entered from the LEFT and source is NOT our neighbouring launcher to the LEFT
if (((x > get_width () / 2) && target_index + 1 == source_index) || // Cursor entered from the RIGHT and source IS our neighbouring launcher to the RIGHT
((x < get_width () / 2) && target_index - 1 != source_index) // Cursor entered from the LEFT and source is NOT our neighbouring launcher to the LEFT
) {
// Move it to the left of us
target_index = target_index > 0 ? target_index-- : target_index;
Expand Down