Cosmetic
This commit is contained in:
parent
017de68d5e
commit
e1359adfd0
5 changed files with 25 additions and 24 deletions
2
NEWS
2
NEWS
|
@ -10,7 +10,7 @@ Minor Bugfixes:
|
||||||
* working autorepeat keys
|
* working autorepeat keys
|
||||||
* working vertical rotated Tabs and Toolbar
|
* working vertical rotated Tabs and Toolbar
|
||||||
|
|
||||||
Featuere:
|
Features:
|
||||||
* The improved TypeAhead sytem is not limited to matches on beginning
|
* The improved TypeAhead sytem is not limited to matches on beginning
|
||||||
of menu items anymore, it matches everywhere.
|
of menu items anymore, it matches everywhere.
|
||||||
* Minor tweaks to the i18n system
|
* Minor tweaks to the i18n system
|
||||||
|
|
|
@ -26,17 +26,11 @@
|
||||||
#include "WinButton.hh"
|
#include "WinButton.hh"
|
||||||
|
|
||||||
#include "fluxbox.hh"
|
#include "fluxbox.hh"
|
||||||
|
|
||||||
#include "Layer.hh"
|
#include "Layer.hh"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#ifdef HAVE_CSTRING
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#else
|
|
||||||
#include <string.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
|
@ -1290,9 +1290,11 @@ void BScreen::rereadMenu() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string BScreen::windowMenuFilename() const {
|
const std::string BScreen::windowMenuFilename() const {
|
||||||
if ((*resource.windowmenufile).empty())
|
std::string name = *resource.windowmenufile;
|
||||||
return Fluxbox::instance()->getDefaultDataFilename("windowmenu");
|
if (name.empty()) {
|
||||||
return *resource.windowmenufile;
|
name = Fluxbox::instance()->getDefaultDataFilename("windowmenu");
|
||||||
|
}
|
||||||
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BScreen::rereadWindowMenu() {
|
void BScreen::rereadWindowMenu() {
|
||||||
|
|
|
@ -299,7 +299,7 @@ FluxboxWindow::FluxboxWindow(WinClient &client):
|
||||||
|
|
||||||
// add the window to the focus list
|
// add the window to the focus list
|
||||||
// always add to front on startup to keep the focus order the same
|
// always add to front on startup to keep the focus order the same
|
||||||
if (m_focused || Fluxbox::instance()->isStartup())
|
if (isFocused() || Fluxbox::instance()->isStartup())
|
||||||
screen().focusControl().addFocusWinFront(*this);
|
screen().focusControl().addFocusWinFront(*this);
|
||||||
else
|
else
|
||||||
screen().focusControl().addFocusWinBack(*this);
|
screen().focusControl().addFocusWinBack(*this);
|
||||||
|
@ -599,8 +599,8 @@ void FluxboxWindow::attachClient(WinClient &client, int x, int y) {
|
||||||
delete old_win;
|
delete old_win;
|
||||||
|
|
||||||
} else { // client.fbwindow() == 0
|
} else { // client.fbwindow() == 0
|
||||||
associateClient(client);
|
|
||||||
|
|
||||||
|
associateClient(client);
|
||||||
moveResizeClient(client);
|
moveResizeClient(client);
|
||||||
|
|
||||||
// right now, this block only happens with new windows or on restart
|
// right now, this block only happens with new windows or on restart
|
||||||
|
@ -2390,10 +2390,13 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) {
|
||||||
|
|
||||||
// undraw rectangle before warping workspaces
|
// undraw rectangle before warping workspaces
|
||||||
if (!screen().doOpaqueMove()) {
|
if (!screen().doOpaqueMove()) {
|
||||||
|
int bw = static_cast<int>(frame().window().borderWidth());
|
||||||
|
int w = static_cast<int>(frame().width()) + 2*bw -1;
|
||||||
|
int h = static_cast<int>(frame().height()) + 2*bw - 1;
|
||||||
|
if (w > 0 && h > 0) {
|
||||||
parent().drawRectangle(screen().rootTheme()->opGC(),
|
parent().drawRectangle(screen().rootTheme()->opGC(),
|
||||||
m_last_move_x, m_last_move_y,
|
m_last_move_x, m_last_move_y, w, h);
|
||||||
frame().width() + 2*frame().window().borderWidth()-1,
|
}
|
||||||
frame().height() + 2*frame().window().borderWidth()-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (moved_x && screen().isWorkspaceWarping()) {
|
if (moved_x && screen().isWorkspaceWarping()) {
|
||||||
|
@ -2444,10 +2447,12 @@ void FluxboxWindow::motionNotifyEvent(XMotionEvent &me) {
|
||||||
// do not update display if another motion event is already pending
|
// do not update display if another motion event is already pending
|
||||||
|
|
||||||
if (!screen().doOpaqueMove()) {
|
if (!screen().doOpaqueMove()) {
|
||||||
parent().drawRectangle(screen().rootTheme()->opGC(),
|
int bw = frame().window().borderWidth();
|
||||||
dx, dy,
|
int w = static_cast<int>(frame().width()) + 2*bw - 1;
|
||||||
frame().width() + 2*frame().window().borderWidth()-1,
|
int h = static_cast<int>(frame().height()) + 2*bw - 1;
|
||||||
frame().height() + 2*frame().window().borderWidth()-1);
|
if (w > 0 && h > 0) {
|
||||||
|
parent().drawRectangle(screen().rootTheme()->opGC(), dx, dy, w, h);
|
||||||
|
}
|
||||||
m_last_move_x = dx;
|
m_last_move_x = dx;
|
||||||
m_last_move_y = dy;
|
m_last_move_y = dy;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue