about summary refs log tree commit diff stats
path: root/screen.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-19 11:00:47 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-19 11:00:47 +0200
commitb975c4728046052a32626378df193217a96fbefc (patch)
treee299b09d2cf9c1853a34531fd9f6d0cb20ad8da0 /screen.c
parent47765f728614c348aa7dfc2eed6f754efc376922 (diff)
downloaddwm-b975c4728046052a32626378df193217a96fbefc.tar.gz
moved updatebarpos to screen
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index 03387eb..022633b 100644
--- a/screen.c
+++ b/screen.c
@@ -370,6 +370,32 @@ toggleview(const char *arg) {
 }
 
 void
+updatebarpos(void) {
+	XEvent ev;
+
+	wax = sx;
+	way = sy;
+	wah = sh;
+	waw = sw;
+	switch(bpos) {
+	default:
+		wah -= bh;
+		way += bh;
+		XMoveWindow(dpy, barwin, sx, sy);
+		break;
+	case BarBot:
+		wah -= bh;
+		XMoveWindow(dpy, barwin, sx, sy + wah);
+		break;
+	case BarOff:
+		XMoveWindow(dpy, barwin, sx, sy - bh);
+		break;
+	}
+	XSync(dpy, False);
+	while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
+}
+
+void
 view(const char *arg) {
 	unsigned int i;
 
554c86 ^
bada5c0 ^
c554c86 ^
bada5c0 ^
c554c86 ^
31e93d8 ^
c554c86 ^
31e93d8 ^

bada5c0 ^
c554c86 ^


bada5c0 ^
c554c86 ^
bada5c0 ^
71e7432 ^

6bf6ff6 ^
71e7432 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
         

                                       
                                                                  
                           


                                                               
                            
                   


                                                                                
                             
                        
                                    
                                                
                                     
                                                    
                                                 
                                                  

                                                      
                       


                                                                               
       
                                                                                      
                                

                                                                                              
                                
 
#!/bin/sh
# Variables that control the program. #
# GIT Repo #
export DSCIP_GITREPO="https://www.example.com/example/example.git"
export DSCIP_NAME="Example"
# GIT MODE:                                                   #
# pull: Doesn't delete previous clone and just pulls changes. #
# clone: Deletes previous clone, and creates a fresh clone.   #
export DSCIP_GITMODE="clone"
# Branch to check #
export DSCIP_BRANCH="master"
# The directory where all the scripts are. By default tries to detect where    #
# automatically.                                                               #
WORKING_DIRECTORY="$(pwd -P)"
export WORKING_DIRECTORY
# Commands to run before building. #
export DSCIP_PRE_CMD="$WORKING_DIRECTORY/pre.sh"
# Commands to run to build program. #
export DSCIP_BUILD_CMD="$WORKING_DIRECTORY/build.sh"
# Commands to run after building has succeeded. #
export DSCIP_POST_CMD="$WORKING_DIRECTORY/post.sh"
# Commands to run after building has failed.
export DSCIP_FAILED_CMD="$WORKING_DIRECTORY/failed.sh"
# Daemon mode options #
export DSCIP_DAEMON="false" # If daemon mode should be enabled or not. #
export DSCIP_DAEMON_FORK="true" # If the daemon should run in the background. #
export DSCIP_SLEEP="60" # How many seconds before the daemon re-runs itself. #
# etc #
export DSCIP_DISREGARD_COMMIT_CHECK="false" # If the script should just rebuild even #
# if upstream has not updated. #
export DSCIP_OUTPUT_TO="$WORKING_DIRECTORY/output.txt" # Output to file, default is output.txt
# Automatically update DSCIP?
export DSCIP_AUTO_UPDATE="false"