Skip to content

Commit d7d5492

Browse files
committed
simplify, correctly this time
1 parent 50236a8 commit d7d5492

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

html5/js/Client.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,13 +1661,13 @@ class XpraClient {
16611661
on_mousedown(e, win) {
16621662
this.mousedown_event = e;
16631663
this.do_window_mouse_click(e, win, true);
1664-
return win == undefined;
1664+
return !win;
16651665
}
16661666

16671667
on_mouseup(e, win) {
16681668
this.mouseup_event = e;
16691669
this.do_window_mouse_click(e, win, false);
1670-
return win == undefined;
1670+
return !win;
16711671
}
16721672

16731673
on_mousemove(e, win) {
@@ -1677,7 +1677,7 @@ class XpraClient {
16771677

16781678
// Ignore events when server is readonly, disconnected or if the event is not over the screen while in shadow mode
16791679
if (this.server_readonly || !this.connected || (!win && this.server_is_shadow)) {
1680-
return win == undefined;
1680+
return !win;
16811681
}
16821682
const mouse = this.getMouse(e);
16831683
const x = Math.round(mouse.x);
@@ -1696,7 +1696,7 @@ class XpraClient {
16961696
e.preventDefault();
16971697
}
16981698
this.send([PACKET_TYPES.pointer_position, wid, coords, modifiers, buttons]);
1699-
return win == undefined;
1699+
return !win;
17001700
}
17011701

17021702
release_buttons(e, win) {

0 commit comments

Comments
 (0)