Repository navigation
Conversation
eb96fa7 to
69076d3
Compare
vkareh
left a comment
There was a problem hiding this comment.
This is incomplete. There's another instance of these flags:
~/P/m/marco (⎇ master) $ git grep "\-\-(class|display)"
src/core/util.c:556: argvl[i++] = "--display";
src/core/util.c:558: argvl[i++] = "--class";
src/core/util.c:654: argvl[i++] = "--display"; <-------- here
src/core/util.c:656: argvl[i++] = "--class"; <------ and here
Also the function signature still takes const char *display which is no longer used. This also means that the malloc should probably be adjusted.
69076d3 to
a7b1896
Compare
|
Okay, now I removed these parameters also from |
vkareh
left a comment
There was a problem hiding this comment.
Much better but there's still inside meta_window_present_delete_dialog a condition for
w->res_class &&
g_ascii_strcasecmp (w->res_class, "marco-dialog") == 0)
but nothing sets the "marco-dialog" class any more.
~/P/m/marco (⎇ master) $ git grep '"marco-dialog"'
src/core/delete.c:228: g_ascii_strcasecmp (w->res_class, "marco-dialog") == 0)
a7b1896 to
a30a1f0
Compare
|
I made a few further changes. Recent versions of zenity no longer support the To ensure that an already-open dialog is focused immediately when the user attempts to close a frozen window again, compare |
4b58d50 to
f9ede9e
Compare
| meta_window_delete (MetaWindow *window, | ||
| guint32 timestamp) | ||
| { | ||
| if (window->dialog_pid >= 0) |
There was a problem hiding this comment.
If g_spawn_async fails in the meta_show_dialog function, this will be a garbage value. You might want to initialize it as -1 or something in that function to avoid a bogus return.
There was a problem hiding this comment.
Okay, I added an initialization for child_pid = -1.
| g_ascii_strcasecmp (w->res_class, "marco-dialog") == 0) | ||
| if (w->net_wm_pid == window->dialog_pid) | ||
| { | ||
| meta_window_activate (w, timestamp); |
There was a problem hiding this comment.
Since you're no longer using timestamp in this function, you can drop the parameter from the function signature (or keep using timestamp since this new function adds a possibly unnecessary X roundtrip)
There was a problem hiding this comment.
Okay, I removed the timestamp parameter. I experienced focusing issues with using the existing timestamp, this is why I replaced it.
The --display and --class options were removed from recent versions of zenity, and refuses to run if these options are specified. Closes: mate-desktop#755
f9ede9e to
eb9223f
Compare
|
I submitted #851 as an alternative for this, which replaces zenity with its fork, xenity. |
The
--displayand--classoptions were removed from recent versions of zenity, and refuses to run if these options are specified.Closes: #755