Skip to content

Commit

Permalink
Fix development target
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Jan 22, 2024
1 parent dabbd0a commit 6f707ac
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/DaemonManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ public class Gala.DaemonManager : Object {

var subprocess_launcher = new GLib.SubprocessLauncher (NONE);
try {
#if HAS_MUTTER43
daemon_client = new Meta.WaylandClient (display.get_context (), subprocess_launcher);
#else
daemon_client = new Meta.WaylandClient (subprocess_launcher);
#endif
string[] args = {"gala-daemon"};
daemon_client.spawnv (display, args);
} catch (Error e) {
Expand Down Expand Up @@ -89,7 +93,7 @@ public class Gala.DaemonManager : Object {
}

var index = int.parse (info[1]);

var monitor_geometry = display.get_monitor_geometry (index);
window.move_frame (false, monitor_geometry.x + SPACING, monitor_geometry.y + SPACING);
window.make_above ();
Expand Down Expand Up @@ -126,7 +130,7 @@ public class Gala.DaemonManager : Object {

x_position = x;
y_position = y;

try {
yield daemon_proxy.show_desktop_menu (x, y);
} catch (Error e) {
Expand All @@ -141,7 +145,7 @@ public class Gala.DaemonManager : Object {

x_position = x;
y_position = y;

try {
yield daemon_proxy.show_window_menu (flags, x, y);
} catch (Error e) {
Expand Down

0 comments on commit 6f707ac

Please sign in to comment.