all repos — fluxbox @ 92537091003a9e259abff98e648e58c63a201bc1

custom fork of the fluxbox windowmanager

don't move window frame when closing tab with non-northwest gravity, just the client
markt markt
commit

92537091003a9e259abff98e648e58c63a201bc1

parent

feb56381d704d61255ca5b0f0ae60e3f4f5f9986

2 files changed, 7 insertions(+), 3 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 1.0rc3: *07/01/21: + * Little fix for closing tabs with non-default gravity (Mark) + Window.cc * Several fixes for menu behavior (Mark) - always give focus to the menu with the highlighted item - revert focus to menu when no other windows will take it
M src/Window.ccsrc/Window.cc

@@ -3724,8 +3724,10 @@

XChangeSaveSet(display, client->window(), SetModeDelete); client->setEventMask(NoEventMask); - int wx = frame().x(), wy = frame().y(); // not actually used here - frame().gravityTranslate(wx, wy, -client->gravity(), client->old_bw, true); // negative to invert + int wx = frame().x(), wy = frame().y(); + // don't move the frame, in case there are other tabs in it + // just set the new coordinates on the reparented window + frame().gravityTranslate(wx, wy, -client->gravity(), client->old_bw, false); // negative to invert // Why was this hide done? It broke vncviewer (and mplayer?), // since it would reparent when going fullscreen.

@@ -3744,7 +3746,7 @@ cerr<<"FluxboxWindow::restore: reparent 0x"<<hex<<client->window()<<dec<<" to root"<<endl;

#endif // DEBUG // reparent to root window - client->reparent(screen().rootWindow(), frame().x(), frame().y(), false); + client->reparent(screen().rootWindow(), wx, wy, false); if (!remap) client->hide();