mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-14 04:45:57 +01:00
Various bug fixes.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
changes since wmaker 0.60.0:
|
||||
............................
|
||||
|
||||
- added WMScreenWidth() and WMScreenHeight() functions.
|
||||
- fixed some problems when compiling with non gcc compilers.
|
||||
|
||||
|
||||
changes since wmaker 0.53.0:
|
||||
............................
|
||||
|
||||
|
||||
@@ -672,6 +672,10 @@ int WMWidthOfString(WMFont *font, char *text, int length);
|
||||
|
||||
WMScreen *WMWidgetScreen(WMWidget *w);
|
||||
|
||||
unsigned int WMScreenWidth(WMScreen *scr);
|
||||
|
||||
unsigned int WMScreenHeight(WMScreen *scr);
|
||||
|
||||
void WMUnmapWidget(WMWidget *w);
|
||||
|
||||
void WMMapWidget(WMWidget *w);
|
||||
|
||||
@@ -593,7 +593,6 @@ WMHandleEvent(XEvent *event)
|
||||
|
||||
if (event->type == SelectionNotify || event->type == SelectionClear
|
||||
|| event->type == SelectionRequest) {
|
||||
puts("REQREWQ");
|
||||
/* handle selection related events */
|
||||
W_HandleSelectionEvent(event);
|
||||
}
|
||||
|
||||
@@ -953,6 +953,20 @@ WMScreenDepth(WMScreen *scr)
|
||||
}
|
||||
|
||||
|
||||
unsigned int
|
||||
WMScreenWidth(WMScreen *scr)
|
||||
{
|
||||
return scr->rootView->size.width;
|
||||
}
|
||||
|
||||
|
||||
unsigned int
|
||||
WMScreenHeight(WMScreen *scr)
|
||||
{
|
||||
return scr->rootView->size.height;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WMRedisplayWidget(WMWidget *w)
|
||||
{
|
||||
|
||||
@@ -245,7 +245,7 @@ doScrolling(WMWidget *self, void *data)
|
||||
int vpsize;
|
||||
float size;
|
||||
|
||||
if (sPtr->hScroller == self) {
|
||||
if (sPtr->hScroller == (WMScroller *)self) {
|
||||
pos = -sPtr->contentView->pos.x;
|
||||
size = sPtr->contentView->size.width-sPtr->viewport->size.width;
|
||||
vpsize = sPtr->viewport->size.width - sPtr->pageScroll;
|
||||
@@ -310,7 +310,7 @@ doScrolling(WMWidget *self, void *data)
|
||||
break;
|
||||
}
|
||||
|
||||
if (sPtr->hScroller == self) {
|
||||
if (sPtr->hScroller == (WMScroller *)self) {
|
||||
W_MoveView(sPtr->contentView, -pos, sPtr->contentView->pos.y);
|
||||
} else {
|
||||
W_MoveView(sPtr->contentView, sPtr->contentView->pos.x, -pos);
|
||||
|
||||
@@ -1260,7 +1260,6 @@ handleTextFieldActionEvents(XEvent *event, void *data)
|
||||
{
|
||||
WMNotification *notif = WMCreateNotification("_lostOwnership",
|
||||
NULL,tPtr);
|
||||
puts("notify it");
|
||||
WMPostNotification(notif);
|
||||
WMReleaseNotification(notif);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user