mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 08:47:13 +00:00
Call intern_atoms() earlier
We call XFixesSelectSelectionInput with the clipboard_atom, so we musr initialize the atoms before calling XFixesSelectSelectionInput.
This commit is contained in:
parent
b882416070
commit
c6e9c52a2a
@ -830,6 +830,7 @@ DynamicScreen::DynamicScreen(Display* display, int screen, int& next_mon_id)
|
||||
X_DEBUG_SYNC(display);
|
||||
//FIXME: replace RootWindow() in other refs as well?
|
||||
platform_win = XCreateSimpleWindow(display, RootWindow(display, screen), 0, 0, 1, 1, 0, 0, 0);
|
||||
intern_clipboard_atoms();
|
||||
XSelectInput(display, platform_win, StructureNotifyMask);
|
||||
XRRSelectInput(display, platform_win, RRScreenChangeNotifyMask);
|
||||
if (using_xfixes_1_0) {
|
||||
@ -843,7 +844,6 @@ DynamicScreen::DynamicScreen(Display* display, int screen, int& next_mon_id)
|
||||
process_monitor_configure_events(platform_win);
|
||||
Monitor::self_monitors_change--;
|
||||
|
||||
intern_clipboard_atoms();
|
||||
XPlatform::set_win_proc(platform_win, root_win_proc);
|
||||
X_DEBUG_SYNC(display);
|
||||
}
|
||||
@ -1106,6 +1106,7 @@ MultyMonScreen::MultyMonScreen(Display* display, int screen, int& next_mon_id)
|
||||
}
|
||||
|
||||
platform_win = XCreateSimpleWindow(display, RootWindow(display, screen), 0, 0, 1, 1, 0, 0, 0);
|
||||
intern_clipboard_atoms();
|
||||
XSelectInput(display, platform_win, StructureNotifyMask);
|
||||
X_DEBUG_SYNC(get_display());
|
||||
XRRSelectInput(display, platform_win, RRScreenChangeNotifyMask);
|
||||
@ -1121,7 +1122,6 @@ MultyMonScreen::MultyMonScreen(Display* display, int screen, int& next_mon_id)
|
||||
process_monitor_configure_events(platform_win);
|
||||
XMonitor::dec_change_ref();
|
||||
|
||||
intern_clipboard_atoms();
|
||||
XPlatform::set_win_proc(platform_win, root_win_proc);
|
||||
X_DEBUG_SYNC(get_display());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user