diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-03-10 21:52:31 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2017-03-10 21:52:31 +0200 |
commit | 1607ca9a2d7ed2950aaf5a99ec1c3dd62314c790 (patch) | |
tree | 99258615390749b2c996a0d726d4ef34eacb15f8 /src/core/screen.c | |
parent | 3675c6f61ecd54a883b9104b9d19db6c1493a37b (diff) | |
download | metacity-1607ca9a2d7ed2950aaf5a99ec1c3dd62314c790.tar.gz |
screen: move cm selection to compositor
Diffstat (limited to 'src/core/screen.c')
-rw-r--r-- | src/core/screen.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/core/screen.c b/src/core/screen.c index 7766fb6b..460760ab 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -489,10 +489,6 @@ meta_screen_new (MetaDisplay *display, screen->wm_sn_atom = wm_sn_atom; screen->wm_sn_timestamp = manager_timestamp; - screen->wm_cm_selection_window = meta_create_offscreen_window (xdisplay, - xroot, - NoEventMask); - screen->work_area_idle = 0; screen->active_workspace = NULL; @@ -2774,31 +2770,3 @@ meta_screen_get_size (MetaScreen *screen, *width = screen->rect.width; *height = screen->rect.height; } - -void -meta_screen_set_cm_selection (MetaScreen *screen) -{ - char selection[32]; - Atom a; - - screen->wm_cm_timestamp = meta_display_get_current_time_roundtrip ( - screen->display); - - g_snprintf (selection, sizeof(selection), "_NET_WM_CM_S%d", screen->number); - meta_verbose ("Setting selection: %s\n", selection); - a = XInternAtom (screen->display->xdisplay, selection, FALSE); - XSetSelectionOwner (screen->display->xdisplay, a, - screen->wm_cm_selection_window, screen->wm_cm_timestamp); -} - -void -meta_screen_unset_cm_selection (MetaScreen *screen) -{ - char selection[32]; - Atom a; - - g_snprintf (selection, sizeof(selection), "_NET_WM_CM_S%d", screen->number); - a = XInternAtom (screen->display->xdisplay, selection, FALSE); - XSetSelectionOwner (screen->display->xdisplay, a, - None, screen->wm_cm_timestamp); -} |