mirror of
https://github.com/fltk/fltk.git
synced 2026-08-17 16:43:10 +08:00
Fluid: fix dirty mark for some WMs #1575
* some window managers unexpectedly reposition a project window, marking the project dirty
This commit is contained in:
@@ -358,7 +358,8 @@ void Window_Node::setlabel(const char *n) {
|
||||
void Overlay_Window::resize(int X,int Y,int W,int H) {
|
||||
// Make sure we don't create undo checkpoints if the window does not actually change.
|
||||
// Some WMs seem to send spurious resize events.
|
||||
if (X!=x() || Y!=y() || W!=w() || H!=h()) {
|
||||
// Some window managers reposition the window, so ignore those changes too.
|
||||
if ( /*X!=x() || Y!=y() ||*/ W!=w() || H!=h()) {
|
||||
// Set a checkpoint on the first resize event, ignore further resizes until
|
||||
// a different type of checkpoint is triggered.
|
||||
if (Fluid.proj.undo.checkpoint(fluid::proj::Undo::OnceType::WINDOW_RESIZE))
|
||||
|
||||
Reference in New Issue
Block a user