mirror of
https://github.com/swaywm/sway.git
synced 2026-02-05 04:06:25 -05:00
Merge 554605bf99 into 845cdb190f
This commit is contained in:
commit
0214066a2a
3 changed files with 3 additions and 7 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include "sway/commands.h"
|
||||
#include "sway/desktop/transaction.h"
|
||||
#include "sway/input/seat.h"
|
||||
#include "sway/ipc-server.h"
|
||||
#include "sway/output.h"
|
||||
|
|
@ -53,6 +54,7 @@ struct cmd_results *cmd_floating(int argc, char **argv) {
|
|||
// Floating containers in the scratchpad should be ignored
|
||||
if (container->pending.workspace) {
|
||||
arrange_workspace(container->pending.workspace);
|
||||
transaction_commit_dirty();
|
||||
}
|
||||
|
||||
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||
|
|
|
|||
|
|
@ -415,12 +415,6 @@ static bool criteria_matches_view(struct criteria *criteria,
|
|||
}
|
||||
#endif
|
||||
|
||||
if (criteria->floating) {
|
||||
if (!container_is_floating(view->container)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (criteria->tiling) {
|
||||
if (container_is_floating(view->container)) {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ static void handle_commit(struct wl_listener *listener, void *data) {
|
|||
// containers, we resize the container to match. For tiling containers,
|
||||
// we only recenter the surface.
|
||||
memcpy(&view->geometry, new_geo, sizeof(struct wlr_box));
|
||||
if (container_is_floating(view->container)) {
|
||||
if (container_is_floating(view->container) && !container_is_scratchpad_hidden(view->container)) {
|
||||
view_update_size(view);
|
||||
// Only set the toplevel size the current container actually has a size.
|
||||
if (view->container->current.width) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue