]> git.mdlowis.com Git - proto/labwc.git/commitdiff
interactive.c: do not allow move/resize when maximized
authorJohan Malm <jgm323@gmail.com>
Sat, 6 Mar 2021 18:34:52 +0000 (18:34 +0000)
committerJohan Malm <jgm323@gmail.com>
Sat, 6 Mar 2021 18:34:52 +0000 (18:34 +0000)
src/interactive.c

index dbe0292f4f41a5b79aebb1d00726879977d81820..250f47102bb2c7c619b402a12363b1105efb1d71 100644 (file)
@@ -3,6 +3,10 @@
 void
 interactive_begin(struct view *view, enum input_mode mode, uint32_t edges)
 {
+       if (view->maximized) {
+               return;
+       }
+
        /*
         * This function sets up an interactive move or resize operation, where
         * the compositor stops propegating pointer events to clients and