Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maxhorvert - Change simple_decoration_node_t::handle_pointer_button e…
…t al handle_pointer_button: Pass all mouse buttons to layout.handle_press_event, not just BTN_LEFT. If the returned action is DECORATION_ACTION_TOGGLE_MAXIMIZE, the user clicked on the maximize button. Then change the action to DECORATION_ACTION_TOGGLE_MAXIMIZE_VERTICALLY or DECORATION_ACTION_TOGGLE_MAXIMIZE_HORIZONTALLY if the button used was BTN_MIDDLE or BTN_RIGHT respectively, before passing it on to handle_action. In all other cases just return if the pressed button wasn't BTN_LEFT, just like before. handle_action: Now also handle DECORATION_ACTION_TOGGLE_MAXIMIZE_VERTICALLY and DECORATION_ACTION_TOGGLE_MAXIMIZE_HORIZONTALLY and set the bits of tiled_edges accordingly, before calling default_wm->tile_request.
- Loading branch information