We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdccab3 commit c98a06eCopy full SHA for c98a06e
bugs.txt
src/gridwm/mod.rs
@@ -852,13 +852,22 @@ impl GridWM {
852
let event: XButtonPressedEvent = From::from(event);
853
854
// get toplevel window if child was clicked
855
- let clicked_win = if event.subwindow != 0 {
+ let mut clicked_win = if event.subwindow != 0 {
856
self.get_toplevel(event.subwindow)
857
} else {
858
event.subwindow
859
};
860
861
if clicked_win != 0 {
862
+ // also make it work if clicked on top window bar
863
+ if let Some((&parent_win, _)) = self
864
+ .win_bar_windows
865
+ .iter()
866
+ .find(|(_, bar_win)| **bar_win == clicked_win)
867
+ {
868
+ clicked_win = parent_win;
869
+ }
870
+
871
unsafe {
872
xlib::XSetInputFocus(
873
self.display,
0 commit comments