Skip to content


Browse files Browse the repository at this point in the history
main: replace deprecated gdk_flush
  • Loading branch information
raveit65 committed Jun 29, 2018
1 parent 5e296c1 commit 36d1856
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mate-panel/main.c
Expand Up @@ -70,6 +70,7 @@ main (int argc, char **argv)
char *desktopfile;
GOptionContext *context;
GError *error;
GdkDisplay *display;
GdkScreen *screen;
GtkCssProvider *css;
GtkStyleProvider *provider;
Expand Down Expand Up @@ -174,7 +175,8 @@ main (int argc, char **argv)

/* Flush to make sure our struts are seen by everyone starting
* immediate after (eg, the caja desktop). */
gdk_flush ();
display = gdk_display_get_default ();
gdk_display_flush (display);

/* Do this at the end, to be sure that we're really ready when
* connecting to the session manager */
Expand Down

0 comments on commit 36d1856

Please sign in to comment.