diff options
Diffstat (limited to 'src/xsmfns.c')
| -rw-r--r-- | src/xsmfns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xsmfns.c b/src/xsmfns.c index 825cec451d9..f3879dbcec0 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c | |||
| @@ -41,6 +41,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 41 | #include "process.h" | 41 | #include "process.h" |
| 42 | #include "keyboard.h" | 42 | #include "keyboard.h" |
| 43 | 43 | ||
| 44 | #ifndef HAVE_GTK3 | ||
| 45 | #define gdk_x11_set_sm_client_id(w) gdk_set_sm_client_id (w) | ||
| 46 | #endif | ||
| 47 | |||
| 44 | /* This is the event used when SAVE_SESSION_EVENT occurs. */ | 48 | /* This is the event used when SAVE_SESSION_EVENT occurs. */ |
| 45 | 49 | ||
| 46 | static struct input_event emacs_event; | 50 | static struct input_event emacs_event; |
| @@ -459,7 +463,7 @@ x_session_initialize (struct x_display_info *dpyinfo) | |||
| 459 | #ifdef USE_GTK | 463 | #ifdef USE_GTK |
| 460 | /* GTK creats a leader window by itself, but we need to tell | 464 | /* GTK creats a leader window by itself, but we need to tell |
| 461 | it about our client_id. */ | 465 | it about our client_id. */ |
| 462 | gdk_set_sm_client_id (client_id); | 466 | gdk_x11_set_sm_client_id (client_id); |
| 463 | #else | 467 | #else |
| 464 | create_client_leader_window (dpyinfo, client_id); | 468 | create_client_leader_window (dpyinfo, client_id); |
| 465 | #endif | 469 | #endif |