mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 05:54:11 +01:00
style
This commit is contained in:
parent
7bbb102e2d
commit
e53a95c60d
@ -258,7 +258,7 @@ static void handle_view_focus(wlc_handle view, bool focus) {
|
|||||||
|
|
||||||
static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry *geometry) {
|
static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geometry *geometry) {
|
||||||
sway_log(L_DEBUG, "geometry request %d x %d : %d x %d",
|
sway_log(L_DEBUG, "geometry request %d x %d : %d x %d",
|
||||||
geometry->origin.x, geometry->origin.y, geometry->size.w,geometry->size.h);
|
geometry->origin.x, geometry->origin.y, geometry->size.w, geometry->size.h);
|
||||||
// If the view is floating, then apply the geometry.
|
// If the view is floating, then apply the geometry.
|
||||||
// Otherwise save the desired width/height for the view.
|
// Otherwise save the desired width/height for the view.
|
||||||
// This will not do anything for the time being as WLC improperly sends geometry requests
|
// This will not do anything for the time being as WLC improperly sends geometry requests
|
||||||
@ -279,12 +279,12 @@ static void handle_view_geometry_request(wlc_handle handle, const struct wlc_geo
|
|||||||
|
|
||||||
static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit state, bool toggle) {
|
static void handle_view_state_request(wlc_handle view, enum wlc_view_state_bit state, bool toggle) {
|
||||||
swayc_t *c = NULL;
|
swayc_t *c = NULL;
|
||||||
switch(state) {
|
switch (state) {
|
||||||
case WLC_BIT_FULLSCREEN:
|
case WLC_BIT_FULLSCREEN:
|
||||||
// i3 just lets it become fullscreen
|
// i3 just lets it become fullscreen
|
||||||
wlc_view_set_state(view, state, toggle);
|
wlc_view_set_state(view, state, toggle);
|
||||||
c = get_swayc_for_handle(view, &root_container);
|
c = get_swayc_for_handle(view, &root_container);
|
||||||
sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d",view,c->name,toggle);
|
sway_log(L_DEBUG, "setting view %ld %s, fullscreen %d", view, c->name, toggle);
|
||||||
if (c) {
|
if (c) {
|
||||||
arrange_windows(c->parent, -1, -1);
|
arrange_windows(c->parent, -1, -1);
|
||||||
// Set it as focused window for that workspace if its going fullscreen
|
// Set it as focused window for that workspace if its going fullscreen
|
||||||
@ -316,7 +316,7 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
|
|||||||
}
|
}
|
||||||
bool cmd_success = false;
|
bool cmd_success = false;
|
||||||
|
|
||||||
if ((modifiers->mods & config->floating_mod) && (dragging||resizing)) {
|
if ((modifiers->mods & config->floating_mod) && (dragging || resizing)) {
|
||||||
reset_floating(get_focused_view(&root_container));
|
reset_floating(get_focused_view(&root_container));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user