How to capture double click on title bar
-
wrote on 3 Aug 2023, 16:55 last edited by deisik 8 Mar 2023, 17:37
For example, I want to minimize (hide) a window when I double click on its title bar (way faster than clicking on the Minimize button)
I can do this in Windows, but how can I do the same in Linux/X11?
I tried reimplementing QWidget::nativeEvent(), but I only receive XCB_CLIENT_MESSAGE with the xcb_generic_event_t event when I click on the title bar (no XCB_BUTTON_PRESS or whatever you would expect on mouse click)
I feel like I got stuck
-
For example, I want to minimize (hide) a window when I double click on its title bar (way faster than clicking on the Minimize button)
I can do this in Windows, but how can I do the same in Linux/X11?
I tried reimplementing QWidget::nativeEvent(), but I only receive XCB_CLIENT_MESSAGE with the xcb_generic_event_t event when I click on the title bar (no XCB_BUTTON_PRESS or whatever you would expect on mouse click)
I feel like I got stuck
wrote on 3 Aug 2023, 17:30 last edited by mpergand 8 Mar 2023, 17:31@deisik
Hi,
Mainly, it's OS dependent (on Linux linked to the Window Manager)
Personally, on mac, I have choosen the zoom option instead of minimize and I would not really appreciate some apps to pass over my choice :)
1/2