mirror of https://github.com/adamdruppe/arsd.git
always clear selection cache on event since it is static across windows anyway
This commit is contained in:
parent
0fce8ff5e5
commit
49f28a9e0f
|
@ -15042,7 +15042,7 @@ mixin DynamicLoad!(XRandr, "Xrandr", 2, XRandrLibrarySuccessfullyLoaded) XRandrL
|
||||||
int cursorSequenceNumber = 0;
|
int cursorSequenceNumber = 0;
|
||||||
int warpEventCount = 0; // number of mouse movement events to eat
|
int warpEventCount = 0; // number of mouse movement events to eat
|
||||||
|
|
||||||
__gshared X11SetSelectionHandler[Atom] setSelectionHandlers;
|
__gshared X11SetSelectionHandler[Atom] setSelectionHandlers; // FIXME: make sure this is not accessed from other threads. it might be ok to make it TLS
|
||||||
X11GetSelectionHandler[Atom] getSelectionHandlers;
|
X11GetSelectionHandler[Atom] getSelectionHandlers;
|
||||||
|
|
||||||
version(without_opengl) {} else
|
version(without_opengl) {} else
|
||||||
|
@ -15831,8 +15831,8 @@ version(X11) {
|
||||||
if(auto win = e.xselectionclear.window in SimpleWindow.nativeMapping) {
|
if(auto win = e.xselectionclear.window in SimpleWindow.nativeMapping) {
|
||||||
// FIXME so it is supposed to finish any in progress transfers... but idk...
|
// FIXME so it is supposed to finish any in progress transfers... but idk...
|
||||||
// writeln("SelectionClear");
|
// writeln("SelectionClear");
|
||||||
SimpleWindow.impl.setSelectionHandlers.remove(e.xselectionclear.selection);
|
|
||||||
}
|
}
|
||||||
|
SimpleWindow.impl.setSelectionHandlers.remove(e.xselectionclear.selection);
|
||||||
break;
|
break;
|
||||||
case EventType.SelectionRequest:
|
case EventType.SelectionRequest:
|
||||||
if(auto win = e.xselectionrequest.owner in SimpleWindow.nativeMapping)
|
if(auto win = e.xselectionrequest.owner in SimpleWindow.nativeMapping)
|
||||||
|
|
Loading…
Reference in New Issue