mirror of
https://github.com/FranP-code/wintile.git
synced 2025-10-13 00:33:46 +00:00
Only activate mouse commands if window is resizable
This commit is contained in:
@@ -571,6 +571,7 @@ function checkForMove(curFrameBefore, app) {
|
|||||||
|
|
||||||
function windowGrabBegin(meta_display, meta_screen, meta_window, meta_grab_op, gpointer) {
|
function windowGrabBegin(meta_display, meta_screen, meta_window, meta_grab_op, gpointer) {
|
||||||
_log('windowGrabBegin')
|
_log('windowGrabBegin')
|
||||||
|
if (meta_window.resizeable) {
|
||||||
windowMoving = true;
|
windowMoving = true;
|
||||||
var app = global.display.focus_window;
|
var app = global.display.focus_window;
|
||||||
if (app.wintile) {
|
if (app.wintile) {
|
||||||
@@ -579,10 +580,12 @@ function windowGrabBegin(meta_display, meta_screen, meta_window, meta_grab_op, g
|
|||||||
Mainloop.timeout_add(500, function () {
|
Mainloop.timeout_add(500, function () {
|
||||||
checkIfNearGrid(app);
|
checkIfNearGrid(app);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function windowGrabEnd(meta_display, meta_screen, meta_window, meta_grab_op, gpointer) {
|
function windowGrabEnd(meta_display, meta_screen, meta_window, meta_grab_op, gpointer) {
|
||||||
_log('windowGrabEnd')
|
_log('windowGrabEnd')
|
||||||
|
if (meta_window.resizeable) {
|
||||||
windowMoving = false;
|
windowMoving = false;
|
||||||
if (preview.visible == true) {
|
if (preview.visible == true) {
|
||||||
var app = global.display.focus_window;
|
var app = global.display.focus_window;
|
||||||
@@ -591,6 +594,7 @@ function windowGrabEnd(meta_display, meta_screen, meta_window, meta_grab_op, gpo
|
|||||||
moveApp(app, { "row": preview.row, "col": preview.col, "height": 1, "width": 1 });
|
moveApp(app, { "row": preview.row, "col": preview.col, "height": 1, "width": 1 });
|
||||||
hidePreview();
|
hidePreview();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeBinding(settings, key, oldBinding, newBinding) {
|
function changeBinding(settings, key, oldBinding, newBinding) {
|
||||||
|
|||||||
Reference in New Issue
Block a user