diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2021-07-06 23:31:49 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2021-07-06 23:31:49 (GMT) |
commit | 0279936d835d7d88537bcf1208035787c02ced59 (patch) | |
tree | 29ef6609dbd82041ba6b6363c9f1356c447112dc /src/Window.hh | |
parent | 43ae328658518a4ee1b3bf363f8865234c64a674 (diff) | |
download | fluxbox-0279936d835d7d88537bcf1208035787c02ced59.zip fluxbox-0279936d835d7d88537bcf1208035787c02ced59.tar.bz2 |
Patch from Thomas Luebking
Adds (secret) opaque resize mode. It sure would be nice if it was documented....
The relevant init file resources and their default values are:
session.screen0.opaqueResize: False
session.screen0.opaqueResizeDelay: 40
Diffstat (limited to 'src/Window.hh')
-rw-r--r-- | src/Window.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Window.hh b/src/Window.hh index 407d51b..c6e3ce4 100644 --- a/src/Window.hh +++ b/src/Window.hh | |||
@@ -528,6 +528,7 @@ private: | |||
528 | void moveResizeClient(WinClient &client); | 528 | void moveResizeClient(WinClient &client); |
529 | /// sends configurenotify to all clients | 529 | /// sends configurenotify to all clients |
530 | void sendConfigureNotify(); | 530 | void sendConfigureNotify(); |
531 | void updateResize() { moveResize(m_last_resize_x, m_last_resize_y, m_last_resize_w, m_last_resize_h); } | ||
531 | 532 | ||
532 | static void grabPointer(Window grab_window, | 533 | static void grabPointer(Window grab_window, |
533 | Bool owner_events, | 534 | Bool owner_events, |
@@ -553,6 +554,7 @@ private: | |||
553 | uint64_t m_last_keypress_time; | 554 | uint64_t m_last_keypress_time; |
554 | FbTk::Timer m_timer; | 555 | FbTk::Timer m_timer; |
555 | FbTk::Timer m_tabActivationTimer; | 556 | FbTk::Timer m_tabActivationTimer; |
557 | FbTk::Timer m_resizeTimer; | ||
556 | 558 | ||
557 | // Window states | 559 | // Window states |
558 | bool moving, resizing, m_initialized; | 560 | bool moving, resizing, m_initialized; |
@@ -565,6 +567,7 @@ private: | |||
565 | int m_last_resize_x, m_last_resize_y; // handles last button press event for resize | 567 | int m_last_resize_x, m_last_resize_y; // handles last button press event for resize |
566 | int m_last_move_x, m_last_move_y; // handles last pos for non opaque moving | 568 | int m_last_move_x, m_last_move_y; // handles last pos for non opaque moving |
567 | int m_last_resize_h, m_last_resize_w; // handles height/width for resize "window" | 569 | int m_last_resize_h, m_last_resize_w; // handles height/width for resize "window" |
570 | int resize_base_x, resize_base_y, resize_base_w, resize_base_h; // opaque and transparent resize alignment | ||
568 | int m_last_pressed_button; | 571 | int m_last_pressed_button; |
569 | 572 | ||
570 | unsigned int m_workspace_number; | 573 | unsigned int m_workspace_number; |